I'm a college student taking Programming Design and Logic course. The class uses VisualLogic for it's main source of logic design and later we'll use VB.NET. I am working on a problem which isn't very diffucult, but I can't seem to get a grasp on it. It reads:
"Write a program that reads in a list of positive intergers from the user until the user enters the value -1 as a sentinel. At that time, the program should display the largest value in the input list."
I have no problem figuring the problem with averaging the numbers input, but I can't seem to recall how to make the program recognize the largest number entered, esp. when using a pre-test while loop because the program just keeps going until -1 is entered. It doesn't seem that there is anything to compare it to, via an if statement. I would love it is somebody could help me. Thanks!