When do you prefer if-else statements?
Answers
Answered by
1
statements seem to do the same thing but take longer to type.
Answered by
3
We need to use the if-else statements when the statements seem to perform the similar thing but take longer to type.
This kind of statement in a programming language is the conditional statement which runs a various range of statements based on if an expression is right or wrong.
These are the right places where we prefer using the if-else statements.
Similar questions