Demonstration Of Switch Case in C language

 #include <stdio.h>


int main(void)

{

int age;


  printf("enter your age\n");

scanf("%d",&age);

  printf("you have entered your age as %d",age);

  switch(age)

    {

      case 3:

      printf("your age is 3");

      break;

      case 13:

      printf("your age is 13");

      break;

      default:

      printf("your age is not 3 and 13");

    }

  


  return 0;

}

🔗Link: https: //replit.com/@AquaLeagen/C-Switch-case?s=app

Comments

Popular Posts