Average P78142


Statement
 

pdf   zip

html

Write a program that reads a sequence of numbers and prints their average.

Input

Input consists of a non-empty sequence of strictly positive real numbers.

Output

Print the average of the numbers with 2 digits after the decimal point.

Public test cases
  • Input

    1 4 9
    

    Output

    4.67
    
  • Input

    7.4
    

    Output

    7.40
    
  • Information
    Author
    Salvador Roura
    Language
    English
    Translator
    Salvador Roura
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Python
    User solutions
    C C++ Java Python