The equation of line passing through (a,b,c) is 1x−a=my−b=nz−c=λ
Since, the line is parallel to Z-axis, therefore any point on this line will be of the form (a,b,z1).
Now, from Eq. (i) any point on the line is (λ+a,λm+b,λn+c) ∴λ+a=a→1=0,λ=0 →λm+b=b→m=0,λ=0 →λn+c=z1→z1=c(∵λ=0) →12+m2+n2=1 →0+0+n2=1 →n=1
Hence, the equation of line is 0x−a=0y−b=1z−c