Computer Science, asked by swagata79mukherjee, 4 months ago

name four commands in qubasic programme ​

Answers

Answered by savvannaht047
0

Answer:

PRINT: This command/statement prints the statement or data written after it on the output screen. If you want to print a sentence or string then you have put inside double quotes (“ ”) and if you want to print a variable or a number, you can just write after the PRINT command.

Syntax: PRINT <expression>

Examples:

If it is a variable or a number,

PRINT age / PRINT 30

If it is a string,

PRINT “This is a Print command”

2. INPUT: this command is used to take data from a user. It can accept both string and number.

If the input data is a number than the variable name in which the number is to be store is written directly after the INPUT command.

Syntax: INPUT [“string”] variable

Example: INPUT year

And if the input data is a string then the variable name in which it is to be stored is written after INPUT command followed by $sign

Example: INPUT name$

3.CLS: CLS means clear screen. This command is used to clear the screen if there are some output or results on your screen that you want to clear or erase.

Syntax: CLS

4.LET: This command is used to assign a value to a variable. The value can be a string or number.

Syntax: LET [variable] = [expression

Similar questions