- 2
If a five digit number is input through the keyboard, write a program to calculate the sum of its digit
Please do in c language
5 Respostas
+ 2
Use it and you will get the answer.
Eg- 12345
12345%10 = 5
12345/10 = 1234
Now 1234%10 = 4
and 1234/10 = 123
:
:
Hope you get it.
0
Yes please do it.
Come back with your code if you have any doubt. Do not ask for complete code.
0
Actually I don't understand, how to do it
0
Do you know what does an % operator do?
0
Yes