Write a program to enter a number and find the sum of squares of all the digits in a
given number
Answers
Answered by
1
Answer:
if u want in python then :
n=int(input("Enter a number:"))
n1=0
while(n>0):
dig=n%10
n1=n1+dig
n=n//10
print("The total sum of digits is:",n1)
Similar questions