Symbolic Constants

  Blog Desk       September 24, 2019     1157 2 Comments

Symbolic Constants

Symbolic 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 “Symbolic Constants”

  1. watch says:

    You made some really good points there. I checked on the net for more info about the issue and found most individuals will go along with your views on this website. Daloris Tremain Noella

  2. […] Symbolic Constants in QBASIC […]

Leave a Reply

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