amanmehara / programming

A polyglot collection of algorithms and code snippets.
Apache License 2.0
35 stars 96 forks source link

[C++] Sum of Digits (Recursion) #206

Closed isuyashpatel closed 4 years ago

isuyashpatel commented 4 years ago

by using recursion printing sum of digits. input=253 output: sum of digit=10 input=2323 output: sum of digit=10