/*读取一个65到122之间的整型数,然后以字符形式输出它,比如读取了97,输出a*/ #include<stdio.h> #include<stdlib.h> #pragma warning(disable:4996) int main() { int a; scanf("%d", &a); if(a>=65 && a<=122) printf("%c", a);//输出大写字符A就将a改为a-32 return 0; }
Powered by: 博客园 Copyright © 2024 来颗维C Powered by .NET 9.0 on Kubernetes