fork download
  1. #include <stdio.h>
  2.  
  3. int testvogal(char p);
  4. int main(void) {
  5. char regex[999];
  6. scanf("%s", &regex);
  7. int t = 0;
  8. char final[999];
  9. for (int i=0;i<strlen(regex);i++)
  10. {
  11. if (testvogal(regex[i]) == 1){
  12. final[t] = regex[i];
  13. t++;
  14. }
  15. }
  16. printf(final);
  17. }
  18.  
  19. int testvogal(char p){
  20. char *vogal = "aeiou";
  21. for (int j=0;j<strlen(vogal);j++)
  22. {
  23. if (p == vogal[j])
  24. return 0;
  25. }
  26. return 1;
  27. }
Success #stdin #stdout 0s 10320KB
stdin
algoritmo
stdout
lgrtm