3x+4y+5−k(x+y+3)=0
⇒(3−k)x+(4−k)y+5−3k=0
⇒y=(k−34−k)x+3k−54−k
Here it is parallel to y− axis
Therefore tanθ=m=k−34−k is not defined
So k−4=0⇒k=4
Alternatively
A straight line is parallel to y−axis is of form x=k
∴ its y coefficient will be zero.
3x+4y+5−k(x+y+3)=0
⇒(3−k)x+(4−k)y+5−3k=0
⇒4−k=0⇒k=4