Computer Science, asked by kavitabargatgujar, 11 months ago

explain the difference between if and if ......else statement​

Answers

Answered by tannu818
4

Answer:

Difference between if & if else statement is The if statement doesn't have else part means in if statement it will only specify that it is true or false. But in if else statement if the statement is false then it is specified in else part.

Answered by Anonymous
2

Explanation:

if statement checks a condition and executes a set of statements when this condition is true, it does not do anything when the condition is false. if-else statement checks a condition and executes a set of statements when this condition is true, it executes another set of statements when the condition is false.

Similar questions