C program to check given alphabet is a vowel or not using switch case

Program #include<stdio.h>#include<conio.h> void main(){char ch;clrscr();printf(“Enter an alphabet:”);scanf(“%c”,&ch); switch(ch){case ‘a’:case ‘A’:case ‘e’:case ‘E’:case ‘i’:case ‘I’:case ‘o’:case ‘O’:case ‘u’:case ‘U’:printf(“The alphabet is vowel”);break;default: printf(“The alphabet is not vowel”);} getch();} Output

C program to perform arithmetic operations using switch case

Program #include<stdio.h>#include<conio.h>#include<stdlib.h> void main(){int ch;float a,b,res;clrscr();printf(“Enter two numbers:”);scanf(“%f%f”,&a,&b);printf(“nMenun1.Additionn2.Subtractionn3.Multiplicationn4.Division”);printf(“nEnter your choice:”);scanf(“%d”,&ch); switch(ch){case 1: res=a+b;break;case 2: res=a-b;break;case 3: res=a*b;break;case 4: res=a/b;break;default: printf(“Wrong choice!!nPress any key…”);getch();exit(0);} printf(“nResult=%f”,res);getch();} Output

error: Alert: Content is protected!!