+ 2
Program to print sum of digit of a number
using function
7 Respostas
+ 13
Thank you Don't Mess With Texas
for your compliment..
with time you will get this mentality..
wish you the best with your journey here..😀
+ 12
this can help you:
https://code.sololearn.com/cqBjEey2m7w4/?ref=app
+ 10
hi Manikant Singh
for the next time,
to get benefit more and get help from solo community before asking you must try to get the solution by yourself.
then if you counter a problem you ask about it.
in this way you will gain twice one to take the advantage of trying that will make you learn more and advance your ability to solve problems, and the second to get support from solo community.
+ 2
Here's my code for that:
https://code.sololearn.com/cqMvFOOd081j/?ref=app
+ 1
Mohammad Dakdouk
That's some elegant code right over there. I was too lazy to take a mathematical approach and just stored the input in a character array and literally added the digits together. But I like yours, it has a lower level mindset compared to mine I think which isn't surprising cause my original language was C# thus I often lack this lower level mindset but I'm learning C now to improve on that.
+ 1
Thank you Mohammad I wish you the same.
+ 1
thanks for your help