66.4k views
3 votes
What is the use of consonant in QBASIC ? Answer me in short and easy answer.​

User Haze
by
5.9k points

1 Answer

5 votes

Answer:

See Explanation

Step-by-step explanation:

I'll assume the question is about the use of constants in QBasic because consonants do not have any special function or usage in QBasic.

In simple terms: In QBasic, constants are used to represent elements that do not change in value during program execution.

Take for instance, you intend to use
\pi in your program.

Its value is
\pi = 3.142

So, 3.142 will always be a constant in your program. One of the ways it can be used in a program is:

10 LET PI = 3.142

The above represents a numeric constant. QBasic also have string constants.

User SMM
by
6.1k points