array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bless
    New Member
    • Mar 2007
    • 1

    #1

    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):
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    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.

    Comment

    Working...