Computer Studies
Answer
| LET statement | INPUT statement |
|---|---|
| LET statement is used to assign a value to a variable at the time of development of the program. | INPUT statement allows the user to assign values to variables at the time of execution of the program. |
| LET statement doesn't make the program user-friendly. | INPUT statement makes the program user-friendly. |
Related Questions
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 ="; ………..
………..What is the purpose of using INPUT statement in a program?
Write down the syntax of:
(a) INPUT statement with a numeric variable.
(b) INPUT statement with an alphanumeric variable.Write a program in QBASIC to make a name sticker which includes your name, class, roll no., subject and school using INPUT statement. Display the output in the given format:
Name : Class : Roll No.: Subject : School :