Balanced numbers X96100


Statement
 

pdf   zip

html

Input The input of the program is a set of numbers, ending with a zero.

Output The program must output whether each number is balanced.

Public test cases
  • Input

    5225
    12334
    220
    48659
    917807
    0
    

    Output

    5225 is a balanced number
    12334 is not a balanced number
    220 is a balanced number
    48659 is not a balanced number
    917807 is a balanced number
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    C++
    User solutions
    C++ Haskell Python