Advertisement
mhdew

nadim_7

Aug 13th, 2021
741
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<string.h>
  3.  
  4. int main(){
  5.  
  6.     char s[111111];
  7.     scanf("%s", s);
  8.    
  9.     int i;
  10.     for(i=0;i<strlen(s);i++){
  11.         if(s[i]>='A' && s[i]<='Z'){
  12.             s[i]+=32;
  13.         }
  14.         else if(s[i]>='a' && s[i]<='z'){
  15.             s[i]-=32;
  16.         }
  17.     }
  18.  
  19.     printf("%s\n", s);
  20.  
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement