Advertisement
Guest User

Untitled

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