Home  |  IT Zone  |  Tips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  World Infos  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Fun / Jokes  |  Decent Quotes  |  Birthday Msgs  |  Good Morning Msgs  |  Good Night Msg  |  Husband Wife Jokes  |  Teacher Students Jokes  |  Insult Jokes  |  Love Quotes  |  Sad Quotes  |  Funny Pics  |  Be Aware  |  Articles  |  Simple Joys of Life 

CONST Statement (Qbasic)

CONST statement is a non-executable statement that declares symbolic constants to be used in place of numeric or string values.
The syntax of general format of CONST statement is:
CONST constantname = expression

Example
CLS
CONST pi = 3.14
INPUT "Enter radius of the circle"; r
A = 2 * pi * r
PRINT "The area of the circle is"; A
END

Share :

Twitter
Back To Top

facebook main

Powered by Blogger.