The youngest person to be elected was John F. Kennedy, at the age of 43. However, the youngest person to ASSUME office was Theodore Roosevelt, at the age of 42, who became president after William McKinley's assassination.
Hope that helps!!