全文预览

C语言冲刺题

上传者:梦&殇 |  格式:pdf  |  页数:46 |  大小:4513KB

文档介绍
sex;\rint age;\rfloat score; }\r5. 1 2 6 24 120\r6. 8 9 2 1\r7. i<100 if(i%3==0 && i=6)\rghij\r1.€‚\rmain()\r{ int m, n, sum=0;.\rfor (m=1;m<=20;m++)\rsum=sum+m* (m+1);\rprintf( " % s " `sum);\r)\r2.€‚\r# include "math.h"\rmain()\r{ float x, y ;\rscanf ( " &x);\rif (x>6)\ry=(x-3)/(2*x-12);\relse\ry=-2*x*x+4*xT0;\rprintf( a y=%fw , y) ; )\r3. main()\r{ char ch;\rFILE *fpl,*fp2;\rfpl=fopen( "filel. dat" , " r " );\rfp2=fopen( "file2.dat” , " r " );\rfp3=fopen( "file3.dat" , "w" );\rCh=fgetc(fpl);\rWhile(ch!=EOF)\r{ fputc(ch, fp3); fputc(ch, fp3);\rCh=fgetc(fpl); }\rCh=fgetc(fp2);\rWhile(ch!=EOF)\r{ fputc(ch, fp3) ; fputc(ch, fp3);\rCh=fgetc(fp2); }\rFclose(fpl);\rFclose(fp2);\rFclose(fp3);\r)\r12.

收藏

分享

举报
下载此文档