IF-THEN-ELSE is used to repeat the commands in program
Answers
Answered by
1
Answer:
no
Explanation:
The if-then-else statement provides a secondary path of execution when an "if" clause evaluates to false. You could use an if-then-else statement in the applyBrakes method to take some action if the brakes are applied when the bicycle is not in motion. In this case, the action is to simply print an error message stating that the bicycle has already stopped.
You can try a program in Qbasic given below :
CLS
PRINT "enter your age: "
INPUT age
IF age >= 13 THEN
PRINT "you can create an account"
ELSE
PRINT "you cannot create an account"
END IF
Now,Then in the menu bar you can see the Run option then click on start
Then write your age.
For example = 12
Was this helpful?
Similar questions
History,
1 month ago
Social Sciences,
1 month ago
English,
3 months ago
Biology,
3 months ago
CBSE BOARD X,
10 months ago
History,
10 months ago