Computer Studies
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 ="; ………..
………..
QBASIC: Input Statement
11 Likes
Answer
CLS
PRINT "What is the cost of this pen?"
INPUT P
PRINT "How many pens do you want?"
INPUT Q
T = P * Q
PRINT "Total cost ="; T
END
Answered By
6 Likes
Related Questions
Complete the following QBASIC program:
CLS
INPUT "Enter the name of article"; N$
INPUT "Enter the number of articles"; P
INPUT "Enter the price of article"; ………..
M = P * Q
PRINT "Name of the article is"; ………..
PRINT "Total cost of the articles is"; ………..
ENDComplete 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$
………..What is the purpose of using INPUT statement in a program?
How does LET statement differ from an INPUT statement?