Computer Science, asked by akp582017, 8 months ago

write a program to print the sum of all digits of a given number.

Answers

Answered by imtiyazallam
0

Answer:

n=int(input("Enter a number:"))

tot=0

while(n>0):

dig=n%10

tot=tot+dig

n=n//10

print("The total sum of digits is:",tot)

Answered by ayushkumarroy03
3

Explanation:

Pointer

In computing, a pointer or mouse cursor is a symbol or graphical image on the computer monitor or other display device that echoes movements of the pointing device, commonly a mouse, touchpad, or stylus pen. It signals the point where actions of the user take place.i think answer might be interested.

THIS IS ABOUT POINTER OF MOUSE OK FRIENDS

Similar questions