Computer Science, asked by gauri743, 3 months ago

write a program to print sum of square of each digits in a number​

Answers

Answered by sambhavgautam6
1

#Program to print sum of square of each digits in a number​

n = int(input("enter the number::"))

sum=0

for i in range(1,n+1):

   rem= n%10

   n=n//10

   sum=sum+rem**2

print("sum of square of each digit is::", sum)

   

Similar questions