I have this assignment, I've been trying to complete it for ages, but I'm pretty confused. I know it's really basic and I'm sure you guys could do it pretty easily:
write a program with a loop to prompt for positive integers
and record the maximum number entered;
then print it after the loop.
Have the loop stop when the user enters a number < or = to zero.
Build a man a fire and keep him warm for the night, set a man on fire and keep him warm for the rest of his life....
OK... that said,...
You need variables for the number the user is entering, one for the highest value entered, and one for whether to continue. When you create the highest value, set it to be 0. For the continue variable, set it to true when you create it
Start a loop - "while your continue variable is true" would be a good condition to use. Prompt the user for a number, read the number in, validate their input (NEVER trust a user's input!), if what they entered is greater than the highest value, set the highest value variable to be the value the user entered. If they entered a negative number, a zero, or invalid input change the continue variable to false. End the loop.