printing the maximum number

Nov 7, 2015 at 12:14am
can anyone give me a code where the program asks the user to enter 4 integers. Then the program will compute the maximum number. The code must use if else else if statements.
Nov 7, 2015 at 3:28am
Put this inside a do, while or for loop.

1
2
3
    cin >> value;
    if ( Value > Max )
        Max = Value;
Nov 7, 2015 at 3:35am
I did this a while a go, and pretty much what ShiftLeft did but cycling through the array if your using one and then set it another variable to 0. Once you find something bigger set that variable to that insides of that array pretty much.
Nov 7, 2015 at 10:00pm
thanks a lot man i appreciate it
Topic archived. No new replies allowed.