find vowel and consonant in c language | mini project in c language | soham kawde
// we are going to create program to identify vowel and consonant
#include <stdio.h>
int main(int argc, char const *argv[])
{
char user_input;
printf("Please enter your favourite character / alphabate \n");
scanf("%c", &user_input);
// time for switch statement or condition statement
switch (user_input)
{
case 'a':
printf("%c is a vowel\n", user_input);
break;
case 'e':
printf("%c is a vowel\n", user_input);
break;
case 'i':
printf("%c is a vowel\n", user_input);
break;
case 'o':
printf("%c is a vowel\n", user_input);
break;
case 'u':
printf("%c is a vowel\n", user_input);
break;
default:
printf("%c is consonant \n",user_input);
break;
}
return 0;
}
// code will be in the description please check there
// and time for run
// english language has 5 vowel a , e, i, o ,u and other charecter are consonant
// let's runn
No comments:
Post a Comment