Petraeus, a retired four-star U.S. Army general once considered a potential presidential candidate, met with President Obama on Thursday and said he was prepared to step down because of the affair. Obama accepted the resignation in a phone call to Petraeus on Friday, officials said.