mooza4880 mooza4880
  • 18-07-2021
  • Computers and Technology
contestada

[10 points] Write a program to compute the sum of digits in a number given by the user. You must use your own function to compute the sum of digits.

Respuesta :

dipo142008
dipo142008 dipo142008
  • 18-07-2021

Answer:

I am going to write the program using BASIC PROGRAMMING

Explanation:

10 PROGRAM TO CALCULATE SUM OF DIGITS

20 INPUT B,H,T,G

30 LET Y = B+H+T+G

40 PRINT Y

DO THIS ON BASIC PROGRAMMING AND YOU HAVE YOUR PROGRAM

Answer Link

Otras preguntas

Autocratic rule was seen in Russia as people had a voice in the government. all power was automatically distributed to regional powers. the Aristocrats ruled. r
An equation is shown below: (4x − 1) + (2x + 2) = 1 Which statement shows a correct next step in solving the equation? The equation can become 6x + 1 = 1 by
how do i estimate then multiply then use estimate to check answer
Explain how pathogens are spread by coughing and sneezing. what can be done to prevent the spread of these diseases? people’s choices can have a positive or neg
150- to 200-word essay on the factors that account for Germany’s early success in the war.
help me solve -4+5b+3b please
He started in San Francisco and arrived in Japan almost three years later. ( years is underlined :) ) Which type of noun is represented by the underlined word?
3. Describe a chemical indicator. What is it? What is it used for? How does it work?
my do you need a ruler?
Find two consecutive whole numbers that 74 lies between.