app/site-content/proposals/2009/08/06/arm.py
changeset 8 294ff7ac9cb6
equal deleted inserted replaced
7:3e6916eb3d2c 8:294ff7ac9cb6
       
     1 for i in range(100, 1000):
       
     2     a = i % 10
       
     3     b = (i / 10) % 10
       
     4     c = (i / 100) % 10
       
     5     if i == a ** 3 + b ** 3 + c ** 3:
       
     6         print "Armstrong Number: ", i