Sum of digits

in the code of sum of digits i tried to input diffrent values and lenghts of numbers but saw that max output of sum that came was 46.
for eg : when i input a number with eight 5 then out=40
but when i input ten or more 5 the output is 46(max)

is there a limit while using while loop?

hi @discobot share the code on ide.codingblocks.com

Hi! To find out what I can do, say @discobot display help.

hello sir , i have uploaded the ss of code on a cloud : https://ibb.co/k3Qm51J

hi @discobot not able to open buddy share the code where i said
write save and send the url of page

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.