English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

if series of numbers are entered by the user(don't know how many), How do I use a loop to figure out the average,largest,and smalles number?

I know how to do it with if and else, but I have no idea how to do it without knowing how many numbers user enters.

Thanks ahead of time for any help.

2007-03-24 11:17:32 · 2 answers · asked by jkim972 3 in Computers & Internet Programming & Design

2 answers

have a running number inside the loop to keep track of how many times it keeps going in
to exit out of the loop,
have your program look for a null entry. zero is not a null entry

2007-03-24 11:27:06 · answer #1 · answered by John 5 · 1 0

complicated matter. search onto search engines like google. just that will help!

2015-04-28 16:50:05 · answer #2 · answered by Fred 2 · 0 0

fedest.com, questions and answers