Write a program to input 6 numbers. After each number is input, print the biggest of the numbers entered so far.
Example:
Enter a number: 1
Largest: 1
Enter a number: 3
Largest: 3
Enter a number: 4
Largest: 4
Enter a number: 9
Largest: 9
Enter a number: 3
Largest: 9
Enter a number: 5
Largest: 9
(Please answer I've been stuck on this problem for days)
Comments
Leave a comment