-
-
Save programmingfaster0226/71ef91e5c5380ec92077180a5914b40b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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