top of page

PROGRAMMING CHALLENGES

Sum of Digits

Difficulty:

1 Easy

4 Iteration (while loops)

Topic:

Implement a program that calculates the sum of digits of a given number using a while loop.

- Input: A number
- Processing: Calculate the sum of digits using a while loop
- Output: Print the sum of digits.

Need help with your programming skills?

If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.

bottom of page