You are on page 1of 1

a=int(input("Table Of : "))

i=0
while i<10:
i=i+1

print(a,"*",i,"=",a*i)

b=int(input("Enter Number : "))


c=0
while b>0:
r=b%10
c=c+r
b=b//10
print("Sum of digits :",c)

You might also like