Learn practical skills, build real-world projects, and advance your career
n=int(input("enter a no"))
a=0
s=0
c=n
while(n>0):
    a=n%10
    s=s+pow(a,3)
    n=n//10
if(c==s):
    print("armstrong no")
else:
    print("not")
    
enter a no345 not
n=int(input("enter number:"))
for i in range(1,n+1):
    print(i*i)
enter number:5 1 4 9 16 25
summ=0
n=int(input("enter the no:"))
for i in range(1,n+1):
    
     summ=summ+(i*i)
print(summ)
 
enter the no:3 14
a=int(input("enter a number"))
for i in range(1,11):
    print(a,'x',i,'=',a*i)
enter a number2 2 x 1 = 2 2 x 2 = 4 2 x 3 = 6 2 x 4 = 8 2 x 5 = 10 2 x 6 = 12 2 x 7 = 14 2 x 8 = 16 2 x 9 = 18 2 x 10 = 20
num=int(input("enter a number"))
fact=1
for i in range(1,num+1):
    fact=fact*i
print(fact)
    
enter a number5 120