Skip to main content

Command Palette

Search for a command to run...

Print command in QBasic

Published
1 min readView as Markdown
Print command in QBasic

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.

More from this blog