dropping the lowest number

I need to be able to enter in five numbers and drop the lowest one. What kind of equation should it look like?
Use a for loop to loop through the numbers and check to see which number is the lowest using the < operator.
Could you possibly expand a little bit on that?
1
2
3
for(/*iterate through the numbers*/) {
   if(curnum < lowestnum) lowestnum = curnum;
}
DYOHW!
KYS!
(Do your own homework)

At least attempt your assignment, if you get stumped on a part of the program, THEN you come and post here.

> KYS!

KYS = ?
Last edited on
Well I didn't know one could use a for loop to find that. And seeing that I'm new to this I would argue it's a pretty valid question, thanks firedraco for the tip.
Topic archived. No new replies allowed.