Dis2(int x0, z0, n){ c1 := c2 := 0; x := x0; z := z0; while (x < n) if (z > x) x := x + 1; c1++; else z := z + 1; c2++; }