char a;
printf("输入字符");
scanf("%c",&a);
if(a>='0'&&a<='9')
printf("%d\n",a*5);
else
printf("no");
}
个人意见,期待各位大神教导!!!
[此贴子已经被作者于2019-10-11 22:45编辑过]
[此贴子已经被作者于2019-10-11 22:45编辑过]
#include <stdio.h> main() { char a; scanf("%c",&a); if((a>='0')&&(a<='9')) printf("%d",(a-'0')*5); else printf("no"); }