Advertisement
Guest User

Untitled

a guest
May 20th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main()
  5. {
  6. char str[100];
  7. gets(str);
  8. for(int i=0; i<strlen(str); i++)
  9. {
  10. if(str[i]>64 && str[i]<91)
  11. printf("%c", str[i]+=32);
  12. else
  13. {
  14. if(str[i]>96 && str[i]<123)
  15. printf("%c", str[i]-=32);
  16. else
  17. printf(" ");
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement