while loop | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

while loop

write a program using while loop that input integers and displays the sum of its digits . for example the program should display 9 if the user enters 135

30th Aug 2017, 9:33 AM
Ria Afridi
Ria Afridi - avatar
1 Answer
30th Aug 2017, 10:07 AM
Luca
Luca - avatar