Write A Program in C To Check Whether A Alphabet Is Vowel or Consunaunt. (Programed By Sandesh Acharya)
It Is The Simple Program To Check Whether a Entered Number is Vowel or Consunaunt.
Please Click On Read More To See the Full Program.
#include<stdio.h>
main() {
char(op);
printf("Enter an Alphabet to check whether is vowel or consunaunt:");
scanf("%c",&op);
switch(op)
{
case'a':
printf(" It is a Vowel.");
break;
case'A':
printf(" It is a vowel.");
break;
case'e':
printf(" It is a vowel.");
break;
case'E':
printf("It is a vowel.");
break;
case'i':
printf(" It is a vowel.");
break;
case'I':
printf(" It is a vowel.");
break;
case'o':
printf(" It is a vowel.");
break;
case'O':
printf(" It is a vowel.");
break;
case'u':
printf(" It is a vowel.");
break;
case'U':
printf(" It is a vowel.");
break;
default:
printf ("Alphabet is a consunsaunt.");
}
return 0;
}
Please Click On Read More To See the Full Program.
#include<stdio.h>
main() {
char(op);
printf("Enter an Alphabet to check whether is vowel or consunaunt:");
scanf("%c",&op);
switch(op)
{
case'a':
printf(" It is a Vowel.");
break;
case'A':
printf(" It is a vowel.");
break;
case'e':
printf(" It is a vowel.");
break;
case'E':
printf("It is a vowel.");
break;
case'i':
printf(" It is a vowel.");
break;
case'I':
printf(" It is a vowel.");
break;
case'o':
printf(" It is a vowel.");
break;
case'O':
printf(" It is a vowel.");
break;
case'u':
printf(" It is a vowel.");
break;
case'U':
printf(" It is a vowel.");
break;
default:
printf ("Alphabet is a consunsaunt.");
}
return 0;
}
Video Below:
Comments
Post a Comment