#include #include int i, korduv; int jada[30000]; void kirjuta(){ FILE* f; f=fopen("kord.val.txt","w"); fprintf(f,"%d\n", korduv); } int main(void){ int i, j, x, max, abi; int jada[30000]; FILE *sisse=fopen("kord.sis.txt","r"); fscanf(sisse,"%d",&x); while(!feof(sisse)){ for (i=0; ijada[max]){ max=j;} } printf(" Max:%d\n", max); abi=jada[max]; jada[max]=jada[i]; jada[i]=abi; } printf("Sorteeritud jada: "); for (i=0; i