Skip to main content

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


 BUILDING A BASIC CALCULATOR

5 CLS
10 REM BUILDING A BASIC CALCULATOR
20 INPUT "FIRST NUMBER: ", NUM1
30 INPUT "SECOND NUMBER: ", NUM2
40 SUM = NUM1 + NUM2
50 MULT = NUM1 * NUM2
60 SUB% = (NUM1 - NUM2)
70 DIV = NUM1 / NUM2
80 PRINT "THE SUM OF THE TWO NUMBERS ARE: ", SUM
90 PRINT "THE PRODUCT OF THE TWO NUMBERS ARE: ", MULT
100 PRINT "THE DIFFERENCE OF THE TWO NUMBERS ARE: ", SUB%
120 PRINT "THE QUOTIENT OF THE TWO NUMBERS ARE: ", DIV
130 END

Use it anywhere it free...

Comments

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