Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://www.facebook.com/AminproPastebin
- #include <stdio.h>
- int main (void)
- {
- char a;
- printf("Enter a letter: ");
- scanf("%s", &a);
- switch(a){
- case('a'):
- printf("It is a vowel");
- case('e'):
- printf("It is a vowel");
- case('i'):
- printf("It is a vowel");
- case('o'):
- printf("It is a vowel");
- case('u'):
- printf("It is a vowel");
- default:
- printf("it is not a vowel");
- break;
- }
- getchar();
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement