#include #include #include #include int main(int argc, char *argv[]) { bool upper = ((char)getc(stdin) == 'u'); while (true) { int c = getc(stdin); if (c == EOF) { break; } if (upper) putc((char)toupper(c), stdout); else putc((char)(tolower(c)), stdout); } return EXIT_SUCCESS; }