![](https://i-blog.csdnimg.cn/blog_migrate/8f900a89c6347c561fdf2122f13be562.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/961ddebeb323a10fe0623af514929fc1.gif)
1 #include<stdio.h> 2 int main() 3 { 4 char a,b; 5 scanf("%c %c",&a,&b); 6 if (a>='a'&&a<='z') 7 printf("%c=>%c\n",a,a-32); 8 else 9 printf("error\n"); 10 if (b>='a'&&b<='z') 11 printf("%c=>%c",b,b-32); 12 else 13 printf("error"); 14 return 0; 15 }
1 #include<stdio.h> 2 int main() 3 { 4 char a,b; 5 scanf("%c %c",&a,&b); 6 if (a>='a'&&a<='z') 7 printf("%c=>%c\n",a,a-32); 8 else 9 printf("error\n"); 10 if (b>='a'&&b<='z') 11 printf("%c=>%c",b,b-32); 12 else 13 printf("error"); 14 return 0; 15 }
转载于:https://www.cnblogs.com/domen0814/p/6806362.html