if…..else Statement
if…..else Statement
In an if…..else statement we have two blocks of code, wherein the former block of code (code inside if statement) is executed if condition evaluates to true and the later block of code (code inside else statement) is executed if the condition is false.
Syntax:
Example:
Output: