#include<stdio.h> int main() { char ch; printf("please input:\n"); scanf("%c",&ch); if(ch>=‘a‘&&ch<=‘z‘) ch-=32; printf("%c",ch); getchar(); return 0; }
运行结果如下:
原文地址:https://www.cnblogs.com/pyp2001/p/11695735.html
时间: 2024-10-10 07:21:01
#include<stdio.h> int main() { char ch; printf("please input:\n"); scanf("%c",&ch); if(ch>=‘a‘&&ch<=‘z‘) ch-=32; printf("%c",ch); getchar(); return 0; }
运行结果如下:
原文地址:https://www.cnblogs.com/pyp2001/p/11695735.html