prasiddhachaulagain9 prasiddhachaulagain9
  • 21-08-2021
  • Computers and Technology
contestada

Write a algorithm to calculate the sum of digits in a given three digit number

​

Respuesta :

XxItzPaglisBandixX
XxItzPaglisBandixX XxItzPaglisBandixX
  • 21-08-2021

[tex]{\huge{\pink{↬}}} \:  \: {\huge{\underline{\boxed{\bf{\pink{Answer}}}}}}[/tex]

Sum of digits algorithm

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.

Answer Link

Otras preguntas

PLEASE HELP MEEEEEEEEEEEEEEE
i need help asap!!!!!
PLEASE HELP I MAKE YOU BRAINLY IF YOU GET IT 100% CORRECT Translate this to our days English!!!!! -Shakespearean---Winters Tale-Act2 "Madam, if't please the que
what is gender equality​
If a woman making $35,000 a year receives a cost-ofliving increase of 2.9%, what will her new salary be?
I need help writing "The Doll House" Literary Analysis. please ty
why did the delegates at the constitutional convention agree to the three-fifths compromise?
Is there a time when you do when it will not be something you do but something you garbage can applesauce doing! doing! doing! I am I magc carpet ride disney ri
Tin (II) oxide is placed into a bottle of hydrogen gas and a reaction occurs where metallic tin and water form: Skeleton Equation: Balanced Equation:
Please select the word from the list that best fits the definition soccer practice