[Tutor] don`t know how to begin...or what to do...

R. Alan Monroe amonroe at columbus.rr.com
Thu Sep 18 17:57:34 EDT 2003


> i have to do the following..."Write a program that continually reads in
> numbers from the user and adds them together until the sum reaches 100. 
> Write another program that reads 100 numbers from the user and prints out 
> the sum."

> i don`t know what to do..i know i`m supposed to use for or while, or for and 
> while...please help me with this...

For loops are meant for those times in life when you know in advance
how many times you want to do something.

Alan




More information about the Tutor mailing list