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

Plz help fast I will mark Brainlyist
Which one is worse in grades? Worth 40 points! A. F B. D
solve pls brainliest!
does anyone know slope?
Read the sentence and answer the following question. What can't this person do now? No puedo limpiar la cocina ahora. A. clean the room B. dry the clothes C. cl
The sum of two consecutive odd numbers is 1408. What are the numbers? Put the smaller number first comma then the larger number.
how were julius Caesars battles portrayed
The match finished very ___________ . A. lately B. late
5x(x−2)+6x−3(x^2−7) is equivalent to which of the following expressions? A) 2x^2+6x−9 B) 2x^2−4x−21 C) 2x^2−16x+21 D) 2x^2−4x+21
Need the answer asap, Help please its English