Computer Science, asked by jayanthimandapati27, 3 months ago

Design a C program to demonstrate abnormal termination in c using break​

Answers

Answered by himanshu2006vps
1

#include <stdio.h>

int main()

{

int num;

printf("Enter value of num:");

scanf("%d",&num);

switch (num)

{

case 1:

printf("You have entered value 1\n");

break;

case 2:

printf("You have entered value 2\n");

break;

case 3:

printf("You have entered value 3\n");

break;

default:

printf("Input value is other than 1,2 & 3 ");

}

return 0;

}

Similar questions