Skip to main content

QBASIC Programming Tutorial – 9 – Getting Users Input




Learn how to begin program using BASIC programming language for Beginners...
For more information.. Drop your comments...

GET THE SOURCE CODE BELOW



  PROGRAM TO CALCULATE THE AVERAGE OF THREE NUMBERS

1 CLS
2 REM PROGRAM TO CALCULATE THE AVERAGE OF THREE NUMBERS
3 NUM1 = 10
4 NUM2 = 20
5 NUM3 = 40
6 SUM = NUM1 + NUM2 + NUM3
7 AVE = SUM / 3
8 PRINT SUM
9 WRITE AVE
10 END

PROGRAM TO  CALCULATE THE AREA OF A TRIANGLE

5 CLS
10 REM PROGRAM TO  CALCULATE THE AREA OF A TRIANGLE
20 INPUT "ENTER YOUR BASE  ", B
30 INPUT "ENTER YOUR HEIGHT ", H
40 PI = 0.5
50 AREA = PI * B * H
60 PRINT "THE AREA OF A TRIANGLE ID = ", AREA
70 END

Use it anywhere it free...

Comments

Post a Comment

Popular posts from this blog

Create a nigerian news blog -4- Homepage Customization Finalized

My Love For Canada

It seems like these days, many people love this country of my first love, Canada, i have always dreamt of being in it as a full fledged citizen having the right to do anything as stated by the law for every citizen, I have my reasons for such love but you can simply take a deep dive into discovering more about the country and why I have such a strong love for  this country here . timbu.com/canada

QBASIC Programming Tutorial – 10 – Building a Basic Calculator

Learn how to begin program using BASIC programming language for Beginners... For more information.. Drop your comments... GET THE SOURCE CODE BELOW