编写一个程序,输入一个字符,判断其是否为大写字母,是则输出yes,否则输出no
#include?<stdio.h>
int?main()
{
char?ch;
scanf("%c",&ch);
if(ch>='A'&&ch<='Z')
printf("Yes");
else?printf("No");
return?0;
}
#include?<stdio.h>
int?main()
{
char?ch;
scanf("%c",&ch);
if(ch>='A'&&ch<='Z')
printf("Yes");
else?printf("No");
return?0;
}