Skip to content

Instantly share code, notes, and snippets.

@utkumalkocoglu
Created March 6, 2014 08:55
Show Gist options
  • Save utkumalkocoglu/9385655 to your computer and use it in GitHub Desktop.
Save utkumalkocoglu/9385655 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <ctype.h>
int main(void)
{
int c;
for(; ;)
{
c=getchar();
if(islower(c))
c=toupper(c);
else if(isupper(c))
c=tolower(c);
putchar(c);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment