Computer Science, asked by vanlalremruatiesther, 7 hours ago

(a)Explains the two conditional blocks, If() then and If() then else.
Ans:
(b) What is the difference between Reapeat() and forever block?
Ans:
pliss can u answer this two question for me​

Answers

Answered by SrijikaM
1

Answer:

If() then means, if the condition is satisfied then executive the below.

If then else means, if the condition is not satisfied then go for else condition execution.

Explanation:

Given: When there is no else condition, if the If() condition is no satisfied then there will be no execution.

To find: difference between if() then and if() then else.

Solution: When we want to executive one conditional instruction we can use only if() then . but when we have to executive two instruction in conditional loop then we use if() then else.

Answered by singhraghuvendra6721
0

Answer:

if..then statement is used to make a decision when there is only two options. For example if you have to write a program to check weather the given number given by used is odd or even then we use if..then statement.

Similarly, if you have to write a program that have to choose from three options then we use if..then..else statement.

But, if you have to write a program that have more than three option then we use if..then..else if..else statement. In this statement you can have any number of condition.

Similar questions