fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. char x, y;
  5. printf("a,b");
  6. scanf(" %c %c", &x, &y);
  7.  
  8. if (x >= 'a' && x <= 'z')
  9. x = x - 32; //
  10. else
  11. x = x + 32; //
  12.  
  13. if (y >= 'a' && y <= 'z')
  14. y = y - 32;
  15. else
  16. y = y + 32;
  17.  
  18. printf("%c %c\n", x, y);
  19. return 0;
  20. }
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
a,b