Question: what is the line of succession if the president has to leave office?
Answer: If the President dies, resigns, or is removed from office, the Vice President becomes President for the rest of the term. If the Vice President is unable to serve, the Speaker of the House acts as President.