Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old March 13th, 2007, 03: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, 03:34 PM
Ganon11's Avatar
Moderator
 
Join Date: Oct 2006
Location: New York, United States of America
Age: 19
Posts: 3,426
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 network members.
Post your question now . . .
It's fast and it's free

Popular Articles