Module: (C++) Subroutines: Procedures and Functions - 2


Problem

6/11

Maximum of three numbers

Problem

Write a function that calculates the maximum of two numbers. Using this function, write a function that finds the maximum of three numbers.

Input: The input string contains three space-separated integers.
Output: The program should print the minimum of the given numbers.

Examples
# Input Output
1 1 2 3 3