codinasion-archive / codinasion-monorepo

Community Monorepo
https://codinasion.org
MIT License
52 stars 170 forks source link

Write a C++ program to find sum of digits of a number #4055

Closed harshraj8843 closed 1 year ago

harshraj8843 commented 1 year ago

Description

Write a C++ program to find sum of digits of a number

Suppose you have a number n and you want to find the sum of its digits. For example, if n = 123, then the sum of its digits is 1 + 2 + 3 = 6.

Input  : 123
Output : 6
How to contribute - Save the solution in `FindSumOfDigitsOfANumber.cpp` file - Add `FindSumOfDigitsOfANumber.cpp` file in `program/find-sum-of-digits-of-a-number` folder
hi-Kartik2004 commented 1 year ago

!assign

hi-Kartik2004 commented 1 year ago

Issue solved in Pull request number codinasion/program#5811

hi-Kartik2004 commented 1 year ago

Issue solved in Pull request number https://github.com/codinasion/program/pull/5811