Skip to main content

QBASIC Programming Tutorial – 4 – Variables




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


 5 REM PROGRAM TO PRINT VARIABLES TYPES
10 NUM1% = 3276755555
20 NUM2& = 764634263
30 NUM3! = 3.889999998
40 NUM4# = 4.9787878
50 HELLO$ = "HELLO WORLD 2"
60 PRINT "THIS IS FOR STRING VARIABLE", HELLO$
70 PRINT "THIS IS FOR SHORT INTEGER VARIABLE", NUM1%
80 PRINT "THIS IS FOR LONG INTEGER VARIABLE", NUM2&
90 PRINT "THIS IS FOR SINGLE PRECISION VARIABLE", NUM3!
100 PRINT "THIS IS FOR DOUBLE PRECISION VARIABLE", NUM4#

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