Connecting Tech Pros Worldwide Help | Site Map

array

  #1  
Old March 13th, 2007, 03:26 PM
Newbie
 
Join Date: Mar 2007
Posts: 1
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):
  #2  
Old March 13th, 2007, 03:34 PM
Ganon11's Avatar
Moderator
 
Join Date: Oct 2006
Location: New York, United States of America
Posts: 3,444

re: array


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Bad Words Jim Carlock answers 7 February 25th, 2006 02:35 AM
Array in javascript Leszek answers 104 February 20th, 2006 01:45 PM
Passing an array of chars to a function jr answers 58 July 22nd, 2005 06:36 AM
array question Stormkid answers 2 July 17th, 2005 04:19 AM
array and for clarification. Brian answers 2 July 17th, 2005 01:54 AM