When a substance changes directly from the solid state to the gaseous state without forming…