I already have posted a cnc progamming example which is programmed in inches.
This cnc lathe programming example is easy and clean with tool cutting in straight line and tool cutting in taper and also tool cutting in an arc.
This cnc programming example can be used as a starting point for any cnc programmer with beginning level skills.
Fanuc CNC Lathe Programming Example
N4 G00 X0 Z0 N5 G01 X1.25 F0.2 N6 G01 X4.836 Z-1.793 N7 G03 X5.422 Z-2.5 I-0.707 K-0.707 N8 G01 Z-5