The 5 counter X26627


Statement
 

pdf   zip

html

Input

The input will be a positive integer number.

Output

A number indicating the count of 5’s in all numbers from zero to the given number.

Public test cases
  • Input

    283746
    

    Output

    143145
    
  • Input

    100
    

    Output

    20
    
  • Input

    5
    

    Output

    1
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    Python
    User solutions
    C++ Haskell Java Python