donmike25

ecp1016 tutorial 3(2)

Jun 27th, 2013
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.  
  6.     char x;
  7.     printf("Enter a character\n");
  8.     scanf("%c",&x);
  9.  
  10. if (x == 'a'|| x == 'e' || x == 'i' || x == 'o' || x == 'u')
  11.     printf("%c is a vowel\n",x);
  12. else
  13.     printf("%c is not a vowel\n",x);
  14.  
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment