int speedDis2(int x,int z,int n){ while (xx) x++; else z++; } return 0; }