Python Program to Find the Sum of Digits in a Number1 min read

In this post, I’ll show you how to find digits of a given. I’ll solve the problem two diffrent way.

First way; for loop statement and other; while loop statement.


For loop:


While loop:


Leave a Comment