In what concerns the continuous evaluation solving exercises grade during the semester, you should submit until 23:59 of October 26th
(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 #03 exercise sheet]
Comparing numbers is a common task when solving various problems in mathematics and computing. Given two numbers, can you determine which one is bigger?
Write a program that, given two integers a and b, identifies and prints the larger of the two. If the two numbers are equal, the program should simply print the number itself.
The input consists of two lines. The first line contains an integer a and the second line contains an integer b.
The output should be a single line containing the value of the largest integer. If both numbers are equal, print either a or b.
The following limits are guaranteed in all the test cases that will be given to your program:
-1000 ≤ a, b ≤ 1000 | Numbers a and b |
Example Input 1 | Example Output 1 |
10 4 |
10 |
Example Input 2 | Example Output 2 |
5 5 |
5 |
Example Input 3 | Example Output 3 |
-90 20 |
20 |