Skip to content

Instantly share code, notes, and snippets.

@programmingfaster0226
Created January 18, 2018 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save programmingfaster0226/71ef91e5c5380ec92077180a5914b40b to your computer and use it in GitHub Desktop.
Save programmingfaster0226/71ef91e5c5380ec92077180a5914b40b to your computer and use it in GitHub Desktop.
/*program to check whether the alphabet is vowel or not by using if-else statements*/
#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
printf("enter character:");
scanf("%c",&ch);
if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'||ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U')
{
printf("%c is vowel",ch);
}
else
printf("%c is not vowel",ch);
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment