app/site-content/proposals/2009/08/06/arm_.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 06 Aug 2009 22:48:30 +0530
changeset 11 dfc069c2d35d
parent 8 294ff7ac9cb6
permissions -rwxr-xr-x
Added home.html

for i in range(100, 1000):
    a = i % 10
    b = (i / 10) % 10
    c = (i / 100) % 10
    if i == a ** 3 + b ** 3 + c ** 3:
        print "Armstrong Number: ", i