write algorithm to find out number of digit and sum of a digits of a number
Answers
Answered by
1
Explanation:
Step 1: Get number by user.
Step 2: Get the modulus/remainder of the number.
Step 3: sum the remainder of the number.
Step 4: Divide the number by 10.
Step 5: Repeat the step 2 while number is greater than 0
Similar questions
History,
2 months ago
Social Sciences,
2 months ago
Math,
6 months ago
Chemistry,
11 months ago
Math,
11 months ago