SHARE
TWEET

Untitled

a guest Sep 19th, 2019 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. char frase[100];
  6. char *ptr_frase;
  7.  
  8. int main()
  9. {
  10.  
  11.     gets(frase);
  12.  
  13.     ptr_frase = frase;
  14.     int i;
  15.  
  16.     for(ptr_frase = frase, i = 0; i<strlen(frase); i++)
  17.     {
  18.  
  19.         if(frase[i] == 'a')
  20.         {
  21.             frase[i] = 'e';
  22.  
  23.         }
  24.         else if(frase[i] == 'e')
  25.         {
  26.             frase[i] = 'i';
  27.         }
  28.         else if(frase[i] == 'i')
  29.         {
  30.             frase[i] = 'o';
  31.         }
  32.         else if(frase[i] == 'o')
  33.         {
  34.             frase[i] = 'u';
  35.         }
  36.  
  37.  
  38.  
  39.  
  40.     }
  41.     system("cls");
  42.      printf("Frase\n %s\n", frase);
  43.     return 0;
  44. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top