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

counter

Powered by Blogger.