+ 2

write a code that sum the digts of an integer

Example 1: Input=25 Output=7 Example 2: Input=99 Output=18

5th Nov 2017, 3:24 PM
Salar Amanyar
Salar Amanyar - avatar
4 Réponses
5th Nov 2017, 4:42 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
5th Nov 2017, 7:42 PM
David Akhihiero
David Akhihiero - avatar
+ 4
https://code.sololearn.com/c62Gr816cGci/?ref=app Sum of digits - java program
5th Nov 2017, 3:33 PM
Muthumani V
Muthumani V - avatar