1 2 3 4 5 6 7 8 9 10
int i,x[4],y[4],dst[4],mxdst,fnldst; //some I/O mxdst=0; for(i=0;i<4;i++){ if(mxdst<dst[i])mxdst=dst[i]; dst[i]=sqrt(pow(0-x[i],2)+pow(0-y[i],2));//The maths stuff } fnldst=mxdst/100; fnldst=fnldst+100; //output of mxdst