In what concerns the continuous evaluation solving exercises grade during the semester, you should submit until 23:59 of March 10th
(this exercise will still be available for submission after that deadline, but without couting towards your grade)
[to understand the context of this problem, you should read the class #02 exercise sheet]
When comparing numbers, sometimes you just want to know which one is the biggest. Given three numbers, can you determine which one is the greatest of them all?
Write a program that, given three integers A, B, and C identifies and prints the largest of the three values.
The input consists of three lines:
The output should be a single line displaying the value of the largest integer.
The following limits are guaranteed in all the test cases that will be given to your program:
-1 000 000 ≤ A, B, C ≤ 1 000 000 | Numbers A, B, and C |
Example Input 1 | Example Output 1 |
1 4 9 |
9 |
Example Input 2 | Example Output 2 |
5 5 5 |
5 |
Example Input 3 | Example Output 3 |
20 400 -900 |
400 |