//Write a C program TO chEck WheatHer It iS VoWel Or CoNsTant
#include<stdio.h>
main()
{
char ch;
printf("Enter any character:\n");
scanf("%c",&ch);
switch(ch)
{
case 'a': case 'A' :
printf("Its VOwel Baby!");
break;
case 'e': case 'E' :
printf("Its VOwel Baby!");
break;
case 'i': case 'I' :
printf("Its VOwel Baby!");
break;
case 'o': case 'O' :
printf("Its VOwel Baby!");
break;
case 'u': case 'U' :
printf("Its VOwel Baby!");
break;
default:
printf("Its Constant Baby!");
}
return 0;
}
Output:
Wednesday, June 13, 2018
C Program To Check Whether it Is Vowel or Constant (Switch Case Example)
C Programs- Switch Case
Labels:
C Programs,
C Programs- Switch Case
Subscribe to:
Post Comments (Atom)
No comments: