Program to find average and sum of three numbers (GW-BASIC)

Average and sum of three numbers

-Program:

10     REM Program to find average and sum of three numbers
20     INPUT “Enter the first number: ” ; X
30     INPUT “Enter the second number: ” ; Y
40     INPUT “Enter the third number: ” ; Z
50     LET SUM = X + Y + Z
60     AVG = SUM/3
70     PRINT “Sum of three numbers is: ” ; SUM
80     PRINT “Average of three numbers is: ” ; AVG
90     END

-Algorithm:

STEP 1     START
STEP 2     INPUT X,Y,Z
STEP 3     COMPUTE SUM = X + Y + Z
STEP 4     COMPUTE AVG = SUM/3
STEP 5     PRINT SUM
STEP 6     PRINT AVG
STEP 7     END

Using the GW-BASIC emulator, I’ve created the following program:

Average & sum of three numbers

Average & sum of three numbers using GW-BASIC Emulator


“My posts/articles/images are not allowed to be stolen/copied anywhere at Cyber space. Doing so will allow me to take a legal action against the copier.”

Related Posts

3 Comments

  1. Hamid says:

    Computer Class 10 Practicals – Your programs are helping me so much with my computer science practicals! Now I can create a program in GW-BASIC to find average and sum of three numbers.

    Thanks a lot! 🙂

  2. abdullah butt says:

    thanks

  3. zani says:

    can any one tell me how to download this emulator..

Leave a Comment

Kindly solve the following puzzle to prove that you\'re not a bot: