ascreatedwithSpire.PDFfor.NET.\r0readDat()K0writeDat()DLMp\r#include<stdio.h>\r^defineMAX200\rinta[MAX],b[10];\rvoidjsVal()\r(\rinti,j,k;/*j,k,i-bcde*/\rintiMax;\rfor(i=0;i<10;i++)/*}A~0bc*/\r(\riMax=0;\rfor(j=i*20;j<(i+1)*20;j++)if(iMax<a[j])iMax=a[j];\rb[i]=iMax;\rfor(j=0;j<i;j++)/*èéB0@`ëªiy0*/\r{\rif(b[j]>iMax)/*.b`äodtD*/\r(\rfor(k=i;k>j;k)b[k]=b[k-l];/*Ð@*/\rb[j]=iMax;\rbreak;\r)\rvoidreadDat()\r(\rinti;\rFILE*fp;\rfp=fop6n("in.dat¢u¢r¢)¨\rfor(i=0;i<MAX;i++)fscanf(fp,¢çd¢u&a[i]);\rfclose(fp);\r)\rvoidmain()\r(\rinti;\rreadDat();\rjsVal();\rfor(i=0;i<10;i++)\rprintf(uzb[%d]=%d\nuz,i,b[i]);\rwriteDat();EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rwriteDat()\r(\rFILE*fp;\rinti;\rfp=fopen(¢out.dat ¢w¢)¨\rfor(i=0;i<10;i++)fprintf(fp,¢%d\n¢,b[i]);\rfclose(fp);\r)