Number of digits (1) P55622


Statement
 

pdf   zip

thehtml

Write a program that reads a number and prints its number of digits.

Input

Input consists of a natural number n.

Output

Print the number of digits of n.

Public test cases
  • Input

    7
    

    Output

    The number of digits of 7 is 1.
    
  • Input

    12345
    

    Output

    The number of digits of 12345 is 5.
    
  • Input

    0
    

    Output

    The number of digits of 0 is 1.
    
  • Information
    Author
    Salvador Roura
    Language
    English
    Translator
    Carlos Molina
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    C++ Java Python
    User solutions
    C C++ Java PHP Python Rust