Connecting Tech Pros Worldwide Help | Site Map

array

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 13th, 2007, 02:26 PM
Newbie
 
Join Date: Mar 2007
Posts: 1
Default array

I just want to ask help if how you will create a program in these output:
ex:

Enter 10 numbers:
9,7,5,24,56,7,3,23,45,1,2 -input by the users
You hve entered 3 even numbers.
24,56,2
you have enterd 7 odd numbers.
9,7,5,7,3,23,45,1
repeat?(y/n):
Reply
  #2  
Old March 13th, 2007, 02:34 PM
Ganon11's Avatar
Moderator
 
Join Date: Oct 2006
Location: New York, United States of America
Age: 20
Posts: 3,444
Default

You will have to read the numbers into an array, then find out how many and which numbers are even by looping through the array and testing them.
Reply
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.