#include<stdio.h> #include<stdlib.h> void main() { int ch; while((ch=getchar())!=EOF) if(ch>=65&&ch<=95) { ch+=32; putchar(ch); } else { ch-=32; putchar(ch); } }
时间: 2024-10-14 15:33:47
#include<stdio.h> #include<stdlib.h> void main() { int ch; while((ch=getchar())!=EOF) if(ch>=65&&ch<=95) { ch+=32; putchar(ch); } else { ch-=32; putchar(ch); } }