[Solved] How to count min,max in loop (java) [closed]


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

1

solved How to count min,max in loop (java) [closed]