Program to find sum of two numbers – GW-BASIC Tutorials

Program to find sum of two numbers

-Program:

10 REM Program to find sum of two numbers in GW-BASIC.
20 INPUT “Enter first number: ” ; X
30 INPUT “Enter second number: ” ; Y
40 LET Z = X + Y
50 PRINT “The sum of the numbers is: ” ; Z
60 END

-Algorithm:

STEP 1: START
STEP 2: INPUT X
STEP 3: INPUT Y
STEP 4: COMPUTE Z = X + Y
STEP 5: PRINT Z
STEP 6: END

-Using GW-BASIC:

Using GW-BASIC emulator for Windows, I have made the following program:

Program to sum any two numbers

Program to sum any two numbers using GW-BASIC Emulator for Windows

Output:

Output of the Program

Output of the Program


“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

M.Bakhtiar Zuberi
I'm M.Bakhtiar Zuberi, the owner of 3DPixelz.com and its network websites. I've been web-developing & graphics-designing for the past 7 years, since the age of 11. I like to work with PHP/HTML and Photoshop/Illustrator. Part-time developer of ZCL and ETC cryptocurrencies. I love to blog here and write for Tribune in my free time.

One Comment

  1. Caesar says:

    Nice GW-BASIC tutorial! Helped to get started with GW-BASIC.

Leave a Comment

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