Qbasic Question
Qbasic Question
2. INPUT Statement:
The INPUT statement is used for receiving input from the user. It
prompts the user to enter a value, which is then stored in a
variable.
Example:
In this example, the user is prompted to enter their age, and the value
entered is stored in the variable age.
3. PRINT Statement:
The PRINT statement is used to display output to the screen. It
can be used to print variables, constants, or expressions.
Example:
This example prints the message "The value of x is" followed by the
value stored in the variable x.
4 Question: Write programs in QBasic using PRINT, LET, INPUT and REM
commands.
1. Assignment Statements:
Used to assign values to variables. The assignment operator = is
typically used for this purpose. Example: x = 10
2. Input/Output Statements:
INPUT: Used to receive input from the user.
PRINT: Used to display output to the screen.
Example:
INPUT "Enter your name: "; name PRINT "Hello, "; name
3. Condition Statements:
IF...THEN...ELSE: Used for conditional branching.
.
Examples:
6 Question: Write the working of conditional statements.
7 Question: What are Differentiate the different types of operators used in QB634.
. Practice and complete the 20 questions from this link
https://www.studyadda.com/question-bank/6th-class/computers-science/break-the-
codes/introduction-to-qbasic/4338