Site icon Pathshala Nepal

Write functions and examples.

Qbasic
Online Calculator

Write functions and examples of

LET

INPUT

END

PRINT


1 Answer


I. LET is used to assign a value to a variable. It is the only optional statement used in q basic programming.

For example,

LET A=12

LET A$="KATHMANDU"

 

II. INPUT Is used to enter value without any message on the screen.

For example,

INPUT name$,roll

INPUT"enter a name:";name$

 

III. PRINT is used to display the result or output of the program on the screen.

For example,
PRINT name$,roll

PRINT"name=";name$

 

IV. END is used to terminate or end a program.

Topics from Computer
Related Questions