1,105,363 Community Members

How to make a program count the number of 0s and 10s

Member Avatar
HelpWanted2115
Newbie Poster
11 posts since May 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Hey guys, I'm making a program to count the number of zeros and tens in a list of numbers in the format: 5,10,5,0,4,6,7,3,0,10,2..... Yeah like in that format, how do I make it read the data like that without a set number of values to be entered and count the number of 0s and 10s in the set of values entered.

Member Avatar
nullptr
Posting Whiz in Training
254 posts since Mar 2012
Reputation Points: 49 [?]
Q&As Helped to Solve: 50 [?]
Skill Endorsements: 2 [?]
 
0
 
zurichy
Newbie Poster
1 post since May 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
Unverified Member
 
0
 

just use while not EOL (end of line) ...
so that if the sequences stop then the counting procces also stop .

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article