QBASIC Symbolic Constants

  Blog Desk       September 7, 2019     996 2 Comments

Symbolic Constants

Constants are fixed values (data) that are used in program and they do not change during program execution. Constants are predefined values that do not change during program execution.

Example


CLS 
REM to calculate area of circle 
INPUT "Enter radius in centimeter"; R
CONST PI = 22/7
LET AREA=PI*R^2
PRINT "area of circle = "; AREA; "sq. cm"
End 

2 responses to “QBASIC Symbolic Constants”

  1. click here says:

    It’s a shame you don’t have a donate button! I’d without a
    doubt donate to this outstanding blog!
    I guess for now I’ll settle for book-marking and adding
    your RSS feed to my Google account.
    I look forward to new updates and will share this site with
    my Facebook group. Chat soon!

  2. Charles says:

    I like the helpful info you provide in your articles.

    I’ll bookmark your weblog and check again
    here frequently. I am quite sure I will learn a lot of new
    stuff right here! Best of luck for the next!

Leave a Reply

Your email address will not be published. Required fields are marked *