MUstar

IoT C언어 0703 - EX_02

Jul 3rd, 2017
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5.     char ch;
  6.     int res;
  7.  
  8.     while(1)
  9.     {
  10.         res = scanf("%c", &ch);
  11.         if(ch == 10) break;
  12.         if((ch>=65)&&(ch<=90)) ch+=32;
  13.         else if ((ch>=97)&&(ch<=112)) ch-=32;
  14.         else ch=ch;
  15.         printf("%c", ch);
  16.     }
  17.     putchar('\n');
  18.  
  19.     return 0;
  20. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×