若变量已正确定义,要求程序段完成求5!的计算,不能完成此操作的程序段是()
A. for(i=1; i<=5; i++ )
B. {
C. p=1;
D. p=i;
E. }
F. B.for(i=1,p=1;i<=5;i++) p=i;
G. C.i=1;
H. p=1;
I. while (i<=5 )
J. {
K. p=i;
L. i++;
M. }
N. D.i=1;
O. p=1;
P. do {
Q. p=i;
R. i++;
S. } while (i<=5 )
程序代码如下:#include
int main()
{
int a,b;
printf(“please input a and b:”);
scanf(“%d%d”,&a,&b);
printf(“the output data is %d”,a7<回车>则程序输出为程序代码如下:#include
int main()
{
int a,b;
printf(“please input a and b:”);
scanf(“%d%d”,&a,&b);
printf(“the output data is %d”,a7<回车>则程序输出为
A. the output data is 7
B. the output data is 2
C. the output data is 1
D. the output data is 0