Share Post:
#include<conio.h>
int main()
{
char ch;
printf("Enter a character\n");
scanf("%c", &ch);
if (ch == 'a' || ch == 'A' || ch == 'e' || ch == 'E' || ch == 'i' || ch == 'I' || ch =='o' || ch=='O' || ch == 'u' || ch == 'U')
printf("%c is a vowel.\n", ch);
else
printf("%c is not a vowel.\n", ch);
return 0;
}
#include <stdio.h>Saturday, March 8, 2014
RELATED POSTS
C program to find armstrong number
A number is armstrong if the sum of cubes of individual digits of a number ...
C program to print sum of even numbers upto 10
#include <stdio.h> #include <stdlib.h> int main() { &n ...
C program to print Fibonacci series
In Fibonacci series, except first two terms in sequence every other term i ...
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment