Connecting Tech Pros Worldwide Forums | Help | Site Map

array

Newbie
 
Join Date: Mar 2007
Posts: 1
#1: Mar 13 '07
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):

Ganon11's Avatar
Moderator
 
Join Date: Oct 2006
Location: New York, United States of America
Posts: 3,428
#2: Mar 13 '07

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