Write the following C++ assignment that computes the largest and second largest
ID: 3749457 • Letter: W
Question
Write the following C++ assignment that computes the largest and second largest integer using while, if and else loops. Do not use arrays. Here is an example of the print after the user has entered ten numbers:
Enter the first number: 0
Enter the next number: -1
Enter the next number: 25
Enter the next number: -44
Enter the next number: -55
Enter the next number: -66
Enter the next number: -7
Enter the next number: -8
Enter the next number: -9
Enter the next number: -10
The largest number is 25
The second largest number is 0
Press any key to continue . . .