Find Entered Variable is Vowel or Consonant

Learn and Trouble Shoot Problems Related to C-Language here.

Find Entered Variable is Vowel or Consonant

Unread postby rajeevmahura » Thu May 22, 2008 5:58 pm

/* Programe For Find Enter Variable is Vowel or Consonant */
#include<stdio.h>
#include<conio.h>
void main()
{
char cho;
clrscr();
printf("Enter Any Variable ");
scanf("%c",&cho);
switch(cho)
{
case 'a' : printf("Entered Variable is Vowel ");break;
case 'e' : printf("Entered Variable is Vowel ");break;
case 'i' : printf("Entered Variable is Vowel ");break;
case 'o' : printf("Entered Variable is Vowel ");break;
case 'u' : printf("Entered Variable is Vowel ");break;
default : printf("Entered Variable is Not Vowel");break;
}
getch();
}
You do not have the required permissions to view the files attached to this post.
--Regards--
Rajeev Mahura
Servers & Storage Professional
http://about.me/rajeevmahura
User avatar
rajeevmahura
 
Posts: 144
Joined: Tue May 20, 2008 5:22 pm
Location: Bangalore | New Delhi
Full Name: Rajeev Mahura
Date Of Birth: 15 Jan 1984
Address: New Delhi
Profession: DOEACC Trainer
DOEACC Center: DOEACC DELHI
Mobile No: 0

Return to C-Language

Who is online

Users browsing this forum: No registered users and 1 guest

cron