• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
+ 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

sum_of_digits
30th Sep 2017, 12:10 PM
Saloni Singh
2 odpowiedzi
+ 3
yes definitely :- https://code.sololearn.com/c63x69Xzi93L/?ref=app
30th Sep 2017, 12:27 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 1
Thank you so much! :)
30th Sep 2017, 12:38 PM
Saloni Singh

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Can I import any module in python in this app?
1 Votes
Loops and conditions
2 Votes
Algorithm to create maze-like grid
2 Votes
photo upload issue in html code
0 Votes
app for lessons
1 Votes
Any coding competitions?
1 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Rise of AI
1 Votes
Need a personal tutor
0 Votes
Community and feed option
0 Votes