Rectify the errors and rewrite the following program statements
(a )10 LET P = “A”
(c) 60 INPUT = M
Answers
Answered by
3
Answer:
Corrected statements are as follows:-
- 10 LET P$ = "A"
- 60 INPUT M
Explanation:
- In QBASIC, variable names must end with a dollar sign ($) if the same variable stores any string.
- The INPUT statement is used to take input from the user. You cannot assign a variable of name "INPUT".
- Line numbers are alright. They must not be repeated.
Similar questions