fork download
  1. #include <iostream>
  2. #include <cctype>
  3. using namespace std;
  4.  
  5. int main() {
  6. char a;
  7. while((a = cin.get()) != EOF){
  8. if(islower(a)) a = toupper(a);
  9. else a = tolower(a);
  10. cout << a;
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 4552KB
stdin
sCHOOL
stdout
School