President Bush says he would consider using force to press Iran to give up its nuclear program , but only as a last resort .