Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. //313AC
  2. #include <stdio.h>
  3. #include <string.h>
  4.  
  5. void vocale(char sir[])
  6. {
  7. for(int i = 0; i<strlen(sir); i++)
  8. if (strcmp("aeiou", sir[i]));
  9. toupper(sir[i]);
  10. }
  11.  
  12. int main()
  13. {
  14. char sir[100];
  15. printf("Introduceti un sir");
  16. fgets(sir, 100, stdin);
  17. vocale(sir[100]);
  18. printf("%s", sir);
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement