Computer Science, asked by piyush42922, 2 months ago

IF-THEN-ELSE is used to repeat the commands in program​

Answers

Answered by monalighosh
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: "

PRINT

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