Search
 
SCRIPT & CODE EXAMPLE
 

C

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

if ( test condition 1)
{
 
   //If the test condition 1 is TRUE then these it will check for test condition 2
   if ( test condition 2)
   {
    //If the test condition 2 is TRUE, these statements execute
    Test condition 2 True statements;
   }

   else
   {
    //If the c test condition 2 is FALSE, then these statements execute
    Test condition 2 False statements;
   }

else
{
 //If the test condition 1 is FALSE then these statements will be executed
 Test condition 1 False statements;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

if ( test condition 1)
{
 
   //If the test condition 1 is TRUE then these it will check for test condition 2
   if ( test condition 2)
   {
    //If the test condition 2 is TRUE, these statements execute
    Test condition 2 True statements;
   }

   else
   {
    //If the c test condition 2 is FALSE, then these statements execute
    Test condition 2 False statements;
   }

else
{
 //If the test condition 1 is FALSE then these statements will be executed
 Test condition 1 False statements;
}
Comment

nested if example in c

if ( test condition 1)
{
 
   //If the test condition 1 is TRUE then these it will check for test condition 2
   if ( test condition 2)
   {
    //If the test condition 2 is TRUE, these statements execute
    Test condition 2 True statements;
   }

   else
   {
    //If the c test condition 2 is FALSE, then these statements execute
    Test condition 2 False statements;
   }

else
{
 //If the test condition 1 is FALSE then these statements will be executed
 Test condition 1 False statements;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

if ( test condition 1)
{
 
   //If the test condition 1 is TRUE then these it will check for test condition 2
   if ( test condition 2)
   {
    //If the test condition 2 is TRUE, these statements execute
    Test condition 2 True statements;
   }

   else
   {
    //If the c test condition 2 is FALSE, then these statements execute
    Test condition 2 False statements;
   }

else
{
 //If the test condition 1 is FALSE then these statements will be executed
 Test condition 1 False statements;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

if ( test condition 1)
{
 
   //If the test condition 1 is TRUE then these it will check for test condition 2
   if ( test condition 2)
   {
    //If the test condition 2 is TRUE, these statements execute
    Test condition 2 True statements;
   }

   else
   {
    //If the c test condition 2 is FALSE, then these statements execute
    Test condition 2 False statements;
   }

else
{
 //If the test condition 1 is FALSE then these statements will be executed
 Test condition 1 False statements;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

if ( test condition 1)
{
 
   //If the test condition 1 is TRUE then these it will check for test condition 2
   if ( test condition 2)
   {
    //If the test condition 2 is TRUE, these statements execute
    Test condition 2 True statements;
   }

   else
   {
    //If the c test condition 2 is FALSE, then these statements execute
    Test condition 2 False statements;
   }

else
{
 //If the test condition 1 is FALSE then these statements will be executed
 Test condition 1 False statements;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

nested if example in c

if ( test condition 1)
{
 
   //If the test condition 1 is TRUE then these it will check for test condition 2
   if ( test condition 2)
   {
    //If the test condition 2 is TRUE, these statements execute
    Test condition 2 True statements;
   }

   else
   {
    //If the c test condition 2 is FALSE, then these statements execute
    Test condition 2 False statements;
   }

else
{
 //If the test condition 1 is FALSE then these statements will be executed
 Test condition 1 False statements;
}
Comment

nested if example in c

if ( test condition 1)
{
 
   //If the test condition 1 is TRUE then these it will check for test condition 2
   if ( test condition 2)
   {
    //If the test condition 2 is TRUE, these statements execute
    Test condition 2 True statements;
   }

   else
   {
    //If the c test condition 2 is FALSE, then these statements execute
    Test condition 2 False statements;
   }

else
{
 //If the test condition 1 is FALSE then these statements will be executed
 Test condition 1 False statements;
}
Comment

nested if example in c

#include <stdio.h>

int main()
{
 int age;

 printf("Please Enter Your Age Here:
");
 scanf("%d",&age);

 if ( age < 18 )
 {
  printf("You are Minor.
");
  printf("Not Eligible to Work");
 }
 else
 {

  if (age >= 18 && age <= 60 ) 
   { 
    printf("You are Eligible to Work 
"); 
    printf("Please fill in your details and apply
"); 
   } 
  else 
   { 
    printf("You are too old to work as per the Government rules
");
    printf("Please Collect your pension! 
");
   }
 }

 return 0;
}
Comment

C Nested if...else

#include <stdio.h>
int main() {
    int number1, number2;
    printf("Enter two integers: ");
    scanf("%d %d", &number1, &number2);
    if (number1 >= number2) {
      if (number1 == number2) {
        printf("Result: %d = %d",number1,number2);
      }
      else {
        printf("Result: %d > %d", number1, number2);
      }
    }
    else {
        printf("Result: %d < %d",number1, number2);
    }

    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: wap in c to input n numbers in an array, find out the sum of odd nos. and even nos. display the numbers whose sum is high. 
C :: Sum of upper & lower triangles elements 
C :: under 
C :: wait system call 
C :: changing data type in one line c program 
C :: arr+1 vs &arr+1 
C :: how much larger integer i can input in c language? 
C :: Calculate the area of a circle and modify the same program to calculate the volume of a cylinder given its radius and height. 
C :: creating an array of arrays or 2D array dynamically 
C :: FivemStore 
C :: function declaration in c 
C :: finding average of elements in array using struct in C? 
C :: error: dereferencing pointer to incomplete type 
C :: pthread_create 
C :: function for 2d dynamic array 
C :: free array in c 
C :: #include <sys/time.h int main() { timespec ts; // clock_gettime(CLOCK_MONOTONIC, &ts); // Works on FreeBSD clock_gettime(CLOCK_REALTIME, &ts); // Works on Linux } 
Dart :: dart regex for email 
Dart :: copy to clipboard flutter 
Dart :: How to center AlertDialog FlatButton in Flutter 
Dart :: dart convert string to datetime 
Dart :: remove space from string dart 
Dart :: flutter chip label 
Dart :: flutter path join 
Dart :: iran phone number regex 
Dart :: dart read from terminal 
Dart :: flutter floting action button elevation 
Dart :: flutter listtile disable 
Dart :: get one document firestore flutter dart 
Dart :: dart write to file 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =