Recent Comments

Nov 14, 2011

c program to check whether input alphabet is a vowel or not

c program to check whether input alphabet is a vowel or not:

#include

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;
}

0 Comments:

Post a Comment

Entries (RSS)
Copyright © 2008 Techhertz.blogspot.com
India's Technology and Internet Blog

Content and Material here is copyrighted to techhertz.blogspot.com Owners.