1 comment:

  1. a=int(raw_input("number is "))
    t=a
    s=0
    while a>0:
    r=a%10
    s=s+r*r*r
    a=a/10
    print s
    if (t==s):
    print "armstrong"
    else:
    print "not armstrong"

    number is 423
    99
    not armstrong
    number is 371
    371
    armstrong

    ReplyDelete