What is IF else Statement?
Ans:-
IF else Statement:-
C language also lets one choose between two statement by using the if else structure.
Syntax:-
if(expression)
{
Statement;
}
else
{
Statement;
}
Example:-
if(num>20)
{
Result =2*num;
}
else
{
result=3*num;
}
========================================================================
Post a Comment