Topic: Language Problem / Level: intermediate

Problem: Write a program to calculate the sum of digits in a number using a while loop.

Run the code to see the output here...