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

Pablo was a political ____________ and therefore had difficulty adapting to the public life. A. Expert B. Icon C. Menace D. Novice E. Thief
Typically, a worker pays more in Federal and state taxes than he does for housing.
need help answer to this? n^2-5=-4????????
If two zeroes of the polynomial f(x)=x^3-5x^2-2x+24 are root 3 and -root3 then find its third zero
Any abiotic or biotic factor in an ecosystem that causes a population’s size to slow or decrease is a ____________ factor.
write an equation of the regression line for the data in each table below
When your classmates at school work cooperatively on a project, it is a positive influence by? Your heredity Your culture A peer group A psychologist
Consider tituba's state of mind when she began naming names in the first act of the crucible. What can you infer about her motivation
Earthquakes happen when rocks bend and snap back in process called
Why did Britain impose the sugar act and quartering act