New course! Every coder should learn Generative AI!
Try a free lesson- 3
Find the sum of the digits of a number?
2 Answers
+ 3
Make a variable sum and intialise it with 0 and take out each number by using a loop and add it with sum
+ 2
your attempt?