I think you mean, "how many years must you be a resident of the United States in order to become president?". You must be a natural born citizen of the United States in order to become President of the United States. Foreign-born persons may be elected to public office, but may not become president. Arnold Schwarzenegger was born in Bavaria, Germany, but has become the Governor of the state of California in the United States. He became a citizen of the United States, but because he was foreig-born, he may never become president.
resident aliens.
kennedy
I have read somewhere that Obama's dream before becoming President was to be a bank manager.
Truman
George W. Bush, Jr. was Governor of Texas before becoming President of the United States.
Jimmy Carter was in the peanut business, before becoming President.
President Lyndon B. Johnson served the longest in the United States Senate before becoming president. He was in the senate for twelve years.
Both Hawaii and Illinois claim Barack Obama as their "son". Hawaii because President Obama was born there and Illinois because President Obama was a resident and represented Illinois in the U.S. Senate before becoming elected as President.
before
Lincoln's job before becoming president was as a lawyer. But he held many jobs prior to studying and becoming a lawyer. Two of them are as a clerk and surveyor.
George Washington
dwight eisenhouer