Computer Studies
What is the purpose of using INPUT statement in a program?
QBASIC: Input Statement
51 Likes
Answer
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.
When the INPUT command is used, the computer displays a question mark on the screen and asks the user to enter the data.
Answered By
28 Likes
Related Questions
Complete the following QBASIC program:
CLS
PRINT "What do you want to buy?"
PRINT "Enter T$ for toy
INPUT ………..
PRINT "How many"; T$; "Want to buy"
INPUT ………..
PRINT "I want to buy"; N; T$
………..Complete the following QBASIC program:
CLS
PRINT "What is the cost of this pen?"
INPUT ………..
PRINT "How many pens do you want?"
INPUT ………..
T = P * Q
PRINT "Total cost ="; ………..
………..How does LET statement differ from an INPUT statement?
Write down the syntax of:
(a) INPUT statement with a numeric variable.
(b) INPUT statement with an alphanumeric variable.