read the values from keyboard
find and print the max value
Are you under the impression that you asked a question?
Here's your new assignment:
Declare 1 integer variable, x
read the single value from keyboard
print the value.
declare 3 integers variables x y and z
read the values from keyboard
find and print the max value