Answer
p → (q v ~r)
Work Step by Step
If the temperature outside is freezing, then the heater is working or the house is not cold.
→ : if then
p : The temperature outside is freezing
q : the heater is working
v :or
~r: the house is not cold.
It can be grouped into parenthesis based on the order of dominance
The heater is working or the house is not cold will be represented as (q v ~r)
If the temperature outside is freezing, then the heater is working or the house is not cold will be represented as: p → (q v ~r)