A-A+

给出程序的运行结果#includeint main(){int a b s;char op;

2022-08-12 11:11:28 问答库 阅读 195 次

问题详情

给出程序的运行结果
#include
int main()
{
int a,b,s;
char op;
scanf("%d %c%d",&a,&op,&b);
s=a%b;
printf("s=%d",s);
return 0;
}
程序运行时从键盘输入:
15<回车>
%
5<回车>
A.0
B.程序报错
C.输出一个随机数
D.3

参考答案

参考答案:A

考点:结果,程序