#include #include int main(void){ int m[100]; int sm[100]; int s[100]; int karv,sugf,sugv, space,l=0,l1=2,arv1,arv2,wh1,i,j,k=0; FILE *sisse=fopen("SUG.SIS", "r"); FILE *valja=fopen("SUG.VAL", "w"); fscanf(sisse, "%d%c%d", &karv, &space,&sugf); while(!feof(sisse)){ fscanf(sisse, "%d%c%d", &arv1, &space,&arv2); m[l]=arv1; m[l+1]=arv2; //printf("%d %d\n", m[l], m[l+1]); l=l+2; } j=0; while(l1