• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
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 Respostas
+ 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

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Best way to learn a new programming language fast?
4 Votes
Will i land a job
1 Votes
Why we use oops in python rather than any function ?
2 Votes
why is my leaderboard diferent than my brothers
0 Votes
Project ideas
1 Votes
someone helps how can i make two for loops over a 2d array in c ( i didn't learned pointers yet )
0 Votes
practising daily
0 Votes
How do I solve all test cases for popsicles problem?https://www.sololearn.com/coach/3?ref=app
0 Votes
Where can I learn c#
0 Votes
Hi help me I am new
0 Votes