/* write a program to accept a character and check if it is vowel or not */
#include<stdio.h>
#include<conio.h>
void main()
{ char ch;
printf(\"n Enter a character in lower case : ");
scanf(" %c", &ch);
if(ch=='a' ||ch=='e'||ch=='i'||ch=='o'||ch=='u')
printf(" \n %c is a vowel ",ch);
else
printf(" \n %c is not a vowel ",ch);
}
/* Output:--
Enter a character in lower case : w
w is not a vowel
*/
No comments:
Post a Comment
This Blog helps you to learn basics to high level programming coding and practicals.
conceptual understanding