C Programming
Learn C from A to Z
Home
Basic Program
Interview Program
Fun coding
Creative program
Videos
Saturday, June 29, 2013
Write a program to whether the given character is vowel or not?
Program:
#include<stdio.h>
#include<conio.h>
void
main()
{
char
c;
clrscr();
printf("\n enter the character ");
scanf("%c",&c);
switch
(c)
{
case
'a':
case
'e':
case
'i':
case
'o':
case'
u':
printf("\n the %c is vowel",c);
break;
default:
printf("\n the %d is consonant",c);
}
getch();
}
output:
Like the Post? Do share with your Friends.
Facebook
Twitter
Google+
Pinterest
StumbleUpon
Delicious
LinkedIn
Reddit
Technorati
No comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment