nikolas_serafini

Lista 2 - Exercício 9

May 24th, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     char let;
  7.  
  8.     printf("Entre com uma letra :\n"); scanf("%c",&let);
  9.    
  10.     if ((let=='a')||(let=='e')||(let=='i')||(let=='o')||(let=='u'))
  11.     {
  12.         printf("A letra eh uma vogal!\n");
  13.     }
  14.     else
  15.     {
  16.         printf("A letra eh uma consoante!\n");
  17.     }
  18.     return 0;
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment