Write purpose of following QBasic statements. (a) CLS (b) PRINT (C) INPUT
Answers
Answer:
cls is used in qb64
Explanation:
and input
It is used to assign the value to a variable. The remarks may be useful in a program to explain about different kinds of statements and user defined words. PRINT statement provides output on the screen. The CLS statement clears the screen.
CLS command will Clear the Screen for you before doing the next operation. For example type the following in and press F5.
INPUT statement is used to make the program user-friendly. With the use of INPUT statement, the user can enter any data to a variable at the time of execution.
PRINT is a QBasic function that requires arguments. The argument in the "Hello, World!" program we just ran were the words "Hello, World!". So, PRINT is the function and "Hello, world