+ 2

Program to print sum of digit of a number

using function

28th Mar 2018, 5:21 PM
Manikant Singh
Manikant Singh - avatar
7 Respuestas
+ 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..😀
28th Mar 2018, 6:22 PM
Mohammad Dakdouk
Mohammad Dakdouk - avatar
28th Mar 2018, 6:01 PM
Mohammad Dakdouk
Mohammad Dakdouk - avatar
+ 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.
28th Mar 2018, 5:42 PM
Mohammad Dakdouk
Mohammad Dakdouk - avatar
28th Mar 2018, 5:54 PM
Kevin Eldurson
Kevin Eldurson - avatar
+ 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.
28th Mar 2018, 6:09 PM
Kevin Eldurson
Kevin Eldurson - avatar
+ 1
Thank you Mohammad I wish you the same.
28th Mar 2018, 7:38 PM
Kevin Eldurson
Kevin Eldurson - avatar
+ 1
thanks for your help
1st Apr 2018, 6:26 PM
Manikant Singh
Manikant Singh - avatar