Respuesta :

The molecular geometry of both F2 and HF is linear.

There are only two atoms which are covalently bonded and thus, the bonding scheme with the atoms looks like this;

F --- F

H---F

So, both are linear.