Nested if :
-It refers as the if statement inside the if another if statement.
Syntax-
if(condition1)
{
if(condition2)
{
if(condition3)
{
....
}
}
}
program-
#include< stdio.h>
int main()
{
int a,b;
printf("Enter Two Number\n");
scanf("%d%d",&a,&b);
if(a==1)
{
if(b>0){
printf("Both Condition is True");
}
}
}
Enter Two Number
1
8
Both Condition is True
Enter Two Number
1
-3