I have problem with coding 1 app for toomorow lectures.
So,
That program ask user for numbers, on typed "100" it's stops, and it shows:
-average
-min
-max
I know what kind of loop, i need to use (do-while right?).
But how i'm suppoused to count average,min,max without using arrays ?
解决方案
this is shorthand pseudo code because you have to code this yourself:
min = max = total = user_input
count = 0
do {
count++
input = get_input
total += input
min or max maybe = input
} while (input !=100)
average = total / count
print stuff
good luck