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

Choose the correct answer to the question. ¿dirá la verdad marcos? sí, diré la verdad. sí, dirás la verdad. sí, dirá la verdad. sí, dirán la verdad.
Which of following is Mendeleev not credited with? Select one: a. Organizing the elements by increasing atomic weight. b. Organizing the elements into groups th
John and his wife love art and travel the world to purchase artwork that is representative of a country's culture. which type of materialism does this represent
which has a greater speed a heron hat travels 600m in 60 seconds or a duck that travels 60 m in 5 seconds? Explain
if the perimeter of the table is expressed as 8w-4 and W represents the width of the table, what is the perimeter of the table if the width of the table is 3 fe
How do you do this problem and how do you get the answer?
translate 12 less than a number
In yusef komunyakaa's "camouflaging the chimera," what is the significance of the chimera?
How are passive immunity and active immunity similar
I need to find acceleration, time, distance and kinetic energy