fork(5) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <ctype.h>
  5.  
  6. int main(void) {
  7. char regex[] = "algoritmo";
  8. char *vogal = "aeiou";
  9. for (int i=0;i<strlen(regex);i++)
  10. {
  11. for (int j=0;j<strlen(vogal);j++)
  12. {
  13. if (regex[i] == vogal[j])
  14. {
  15. regex[i] = '.';
  16. }
  17. }
  18. }
  19. printf(regex);
  20. }
  21.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout
.lg.r.tm.