Computer Science, asked by yasimen, 1 year ago

Identify the error
1)IF A=5 Rs THEN GOTO START
2)IF A>B THEN PRINT A IS GREATER

Attachments:

Answers

Answered by Anonymous
33

1- Variable can store only integer.

Therefore, IF A = 5 THEN

                   GOTO START

2- String that is to be printed should always be within " ".

Therefore, IF A>B THEN

                   PRINT "A IS GREATER"

3- Variable can store only integer and String that is to be printed should always be within " ", we cannot print A$ as string variable is not assigned any value.

Therefore, IF A = 10 THEN

                  PRINT "A"  

                   ELSE

                   PRINT "B"

4-  OTHERWISE statement cannot be used in qbasic.

There,fore IF Y$ = "KABIR" THEN

                  GOTO A

                  ELSE GOTO B

5- To store a string we need string variable.

Therefore, IF X$ = "SUNDAY" THEN PRINT "HAVE FUN"

                  ELSE PRINT "FOLLOW THE ROUTINE"

Similar questions