Smart Cow -
04-05-2011, 03:44 PM
I have to do an assignment that makes a cow pick the highest number out of a user designated sequence of numbers: The cow asks how many numbers are in the sequence, the user enters a number; then the cow asks for the numbers. He is supposed to tell you which one is the highest. I am supposed to use three variables: numberOfItems, highestNumber, and currentNumber; also a for loop with an embedded if statement...I can get the cow to go through the script and ask for the sequence and the numbers but not to tell which number is the highest.....help please??
|