c语言题库Word格式.docx
- 文档编号:4553202
- 上传时间:2023-05-03
- 格式:DOCX
- 页数:20
- 大小:350.42KB
c语言题库Word格式.docx
《c语言题库Word格式.docx》由会员分享,可在线阅读,更多相关《c语言题库Word格式.docx(20页珍藏版)》请在冰点文库上搜索。
i=1;
/*$ERROR1$*/=0
while(i<
5)
{
j=0;
while(j<
5-i)
{printf("
*"
);
j++;
}
printf("
\n"
i++;
i=4;
while(i>
0)
5-i)/*$ERROR2$*/<
=
i++/*$ERROR3$*/i--
}
填空:
inta[10]={23,90,-45,60,100,62,78,-89,-50,0};
inti,j,temp;
for(i=0;
i<
9;
i++)
for(j=0;
j<
9-i;
j++)
if(a[j]<
___)/*$BLANK1$*/a[j+1]
temp=a[j];
a[j]=a[j+1];
a[j+1]=___;
/*$BLANK2$*/temp
for(i=0;
=9;
%5d"
___);
/*$BLANK3$*/a[i]*(a+i)
}//将数组中的数按从大到小排序后输出
编程:
voidPRINT(longs)
FILE*out;
s=%ld\n"
s);
if((out=fopen("
C:
\\24000104\\RESULT.DAT"
"
w+"
))!
=NULL)
fprintf(out,"
s=%ld.ld"
fclose(out);
S=1+(2*2)+(3*3*3)+……+(9*9*9*9*9*9*9*9*9*9)
PRINT(s);
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 语言 题库