printing the maximum number

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.
Put this inside a do, while or for loop.

1
2
3
    cin >> value;
    if ( Value > Max )
        Max = Value;
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.
thanks a lot man i appreciate it
Topic archived. No new replies allowed.