Skip to main content

QBASIC Programming Tutorial – 5 – Maths Operators




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

GET THE SOURCE CODE BELOW


5 CLS
10 A% = 15
20 B% = 2
30 ADD% = A% + B%
40 MULT% = A% * B%
50 SUB% = A% - B%
60 DIV% = A% / B%
70 PRINT "THE SUM OF A AND B = ", ADD%
80 PRINT "THE PRODUCT OF A AND B = ", MULT%
90 PRINT "THE DIFFERENCE OF A AND B = ", SUB%
100 PRINT "THE QUOTIENT OF A AND B = ", DIV%
110 MODU% = A% MOD B%
120  PRINT "THE REMAINDER OF A AND B = ", MODU%

Use it anywhere it free...

Comments

Popular posts from this blog

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

Create a nigerian news blog -4- Homepage Customization Finalized