i = 0 is not >= 10. The for-loop is not taken.
You probably wanted < 10 to get 10 iterations.
Rest applies, put the glBegin glEnd outside for performance reasons.
Make sure your projection contains the calculated z-coordinates.
If you look at this in a standard glOrtho projection it’s possible to look directly onto the xz-edge, still nothing displayed.