Conditional Statements is using to, execute some code if a condition is true and another code if the condition is false.
Syntax (Single Line):
if (condition) Program will executed if condition is true;
Syntax (with else condition):
if (condition)
Program will execute if condition is true;
else
Program will execute … Read more