Click here to Upload your own logic for this program.

Write a program to check the given character whether it is vowel or consonant?


Program:


#include<stdio.h> main() { char ch; printf("Enter any small letter(a-z):"); scanf("%c",&ch); if((ch=='a')||(ch=='e')||(ch=='i')||(ch=='o')||(ch=='u')) printf("It is a vowel "); else printf("It is a consonant"); }
Output:
		

Enter any small letter(a-z):a It is a vowel