+ 2

Is it possible to combine these two codes and create a general logic for sum of digits of any n digit number?

https://code.sololearn.com/cELsRBOL0Gl6/?ref=app https://code.sololearn.com/cuo7w0V70SM8/?ref=app

30th Sep 2017, 12:10 PM
Saloni Singh
2 Answers
30th Sep 2017, 12:27 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 1
Thank you so much! :)
30th Sep 2017, 12:38 PM
Saloni Singh