Comparing numbers using for

Hey guys, how do you compare 5 numbers and print the biggest, only using for?
Last edited on
you can store it in array.
and make a variable temp.

in the for loop.
compare the first one to the second and store the high one in temp and then compare it in the next one and so on.
Topic archived. No new replies allowed.