Direction Ratios of the first line
∣i^10j^−ack^0−1∣=ai^+j^+ck^
Hence, Direction Ratios of the first line are a,1,c.
For Direction Ratios of the second line
∣i^10j^01k^−a′−c′∣=a′i^+c′j^+k^
Hence, Direction Ratios of the 2nd line =a′,c′,1
Since, both the lines are perpendicular,
a.a′+c′+c=0