Computer Science, asked by nishith246, 1 month ago

compare if statement and if else statement with an example for each​

Answers

Answered by todkarianushka012
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 tarundvk
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