Program:-
#include <stdio.h>
void main()
{
char a;
int isLowercaseVowel, isUppercaseVowel;
printf("Enter an alphabet: ");
scanf("%c",&a);
if(a == 'a'|| a == 'e' || a == 'i' || a == 'o' || a == 'u' || a == 'A' || a == 'E' || a == 'I' || a == 'O' || a == 'U' )
{
printf(" vowel.",&a);
}
else
{
printf("not vowel",&a);
}
}
Output:-
#include <stdio.h>
void main()
{
char a;
int isLowercaseVowel, isUppercaseVowel;
printf("Enter an alphabet: ");
scanf("%c",&a);
if(a == 'a'|| a == 'e' || a == 'i' || a == 'o' || a == 'u' || a == 'A' || a == 'E' || a == 'I' || a == 'O' || a == 'U' )
{
printf(" vowel.",&a);
}
else
{
printf("not vowel",&a);
}
}
Output:-
No comments:
Post a Comment