Sum of the minimum and the maximum of three integers X89070


Statement
 

pdf   zip

html

Write a program that reads three numbers and prints the sum of their minimum and maximum values. Input

Input consists of three integer numbers.

Output

Print a line with the sum of the maximum and the minimum of the three numbers.

Public test cases
  • Input

    736 291 348

    Output

    1027
    
  • Input

    12 -569 666
    

    Output

    97
    
  • Input

    23 22 20
    

    Output

    43
    
  • Information
    Author
    Maria Serna
    Language
    English
    Translator
    Maria Serna
    Original language
    Catalan
    Other languages
    Catalan Spanish
    Official solutions
    Unknown.
    User solutions
    C C++ Java Python