28. Tallest of Three Friends

Acceptance — 0 accepted 0 submissions

Easy
Conditionals
No companies listed
Aarav, Kabir and Meera are standing for the class photo. The tallest one has to stand in the middle.

Given their three heights in centimetres, print the greatest height.

Input Format
A single line with three integers a, b and c.

Output Format
Print the greatest of the three numbers.

Constraints
• 1 ≤ a, b, c ≤ 300
• Heights may be equal.

Example 1

Input
150 162 158
Output
162

Explanation 162 is the greatest of the three.

Example 2

Input
170 170 165
Output
170

Explanation Two friends share the greatest height of 170.

Example 3

Input
120 110 175
Output
175

Explanation The third friend is the tallest.

Acceptance —
Accepted 0
Submissions 0
Auto-save
Saved Ln 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
162
No results yet
Run your code to test it against the sample cases.
Problem List