The print command in QBasic is used to display the output on the screen. We can print the string if we enclose the string in double quotes. Similarly, we can print the numbers or values that are stored in the variable without the use of double quotes.
For example,
PRINT "Shonak Pal"
PRINT age
In the first example, we had to use the double quotes from printing the strings, and in the second example, we dont need to use the double quotes as we are printing a variable.