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

Ned weighs 1.5 times as much as Jill and Tom weighs 15 kilograms more than Jill. If their combined weight is 190 kilograms, how much does each person weigh?
Name four behaviors that animals must use to survive
Peter jogged 96 yards in 40 seconds? What is his speed in feet per second?
Peter jogged 96 yards in 40 seconds? What is his speed in feet per second?
Caitlyn did 6/7 of the problems on her math correctly and 4 incorrectly. She did all the problems. How many were there?
write a program in pascal to solve a quadratic equation
Ned weighs 1.5 times as much as Jill and Tom weighs 15 kilograms more than Jill. If their combined weight is 190 kilograms, how much does each person weigh?
what is a rational number between -1/6 and -2/6
Name four behaviors that animals must use to survive
Caitlyn did 6/7 of the problems on her math correctly and 4 incorrectly. She did all the problems. How many were there?