Maximum of three integer numbers P90615


Statement
 

pdf   zip

html

Write a program that reads three numbers and prints their maximum. This exercise is slightly harder than P52847: “Maximum of three different integer numbers”.

Input

Input consists of three integer numbers.

Output

Print a line with the maximum of the three numbers.

Public test cases
  • Input

    736 291 348
    

    Output

    736
    
  • Input

    12 -569 666
    

    Output

    666
    
  • Information
    Author
    Jordi Petit
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Pascal Python
    User solutions
    Ada C C++ Erlang Haskell Java Lisp Lua Perl PHP Python Ruby