compare if statement and if else statement with an example for each
Answers
Answered by
5
Explanation:
The if statement is a decision-making structure that consists of an expression followed by one or more statements. The if else is a decision-making structure in which the if statement can be followed by an optional else statement that executes when the expression is false.
Answered by
4
Answer:
Explanation:
If statement can Offer you only one conditional statement with 2 options
eg : if( x==3)
Printf(“give me a like”);
if else offers u multiple conditions to check and therefore multiple options
if(x==3)
printf (“hello”);
else printf(“gimme a brainie”);
Similar questions