Largest of Three Numbers

You are given three integers A, B, and C. Find and print the largest among the three integers.

Input

  • The input contains three space-separated integers A, B, and C.

Output

Print the largest of the three integers without labels or trailing spaces.

Example 1:

Input:

3 7 5

Output:

7

Explanation:

7 is the largest among 3, 7, and 5.

Example 2:

Input:

10 4 8

Output:

10

Explanation:

10 is the largest among 10, 4, and 8.

Now Your Turn!

Pick the correct output for the given input

Input:

-1 -4 0

Still unsure what the problem is asking ?

Let’s go through a few more examples, step by step, to make it clearer.

Constraints:

  • -1000 <= A, B, C <= 1000

Hints

Frequently Occurring Doubts

Interview Follow-up Questions

0
#include <bits/stdc++.h>
using namespace std;
 
int main() {
// Your code goes here
}
Test Case
Input