Simply perfect X24493


Statement
 

pdf   zip

html

Input The input of the program is a list of positive integers, ending with a 0.

Output The program must output the type of each integer.

Public test cases
  • Input

    3
    6
    28
    412
    198
    0
    

    Output

    3 is deficient
    6 is perfect
    28 is perfect
    412 is deficient
    198 is abundant
    
  • Information
    Author
    HP CodeWars
    Language
    English
    Official solutions
    Python
    User solutions
    C++ Python