<Ul> <Li> </Li> <Li> </Li> <Li> </Li> </Ul> <P> John Fitzgerald Kennedy (May 29, 1917--November 22, 1963), commonly referred to by his initials JFK, was an American politician who served as the 35th President of the United States from January 1961 until his assassination in November 1963 . He served at the height of the Cold War, and the majority of his presidency dealt with managing relations with the Soviet Union . As a member of the Democratic Party, Kennedy represented the state of Massachusetts in the United States House of Representatives and the U.S. Senate prior to becoming president . </P> <P> Kennedy was born in Brookline, Massachusetts, to Joseph P. Kennedy Sr. and Rose Kennedy . He graduated from Harvard University in 1940 and joined the U.S. Naval Reserve the following year . During World War II, he commanded a series of PT boats in the Pacific theater and earned the Navy and Marine Corps Medal for his service . After the war, Kennedy represented the 11th congressional district of Massachusetts in the U.S. House of Representatives from 1947 to 1953 . He was subsequently elected to the U.S. Senate and served as the junior Senator from Massachusetts from 1953 to 1960 . While in the Senate, he published his book entitled Profiles in Courage, which won a Pulitzer Prize for Biography . In the 1960 presidential election, Kennedy narrowly defeated Republican opponent Richard Nixon, who was the incumbent Vice President . At age 43, he became the youngest man to be elected as U.S. president as well as being the first (and only) Roman Catholic to occupy that office . </P> <P> Kennedy's time in office was marked by high tensions with communist states in the Cold War . He increased the number of American military advisers in South Vietnam by a factor of 18 over President Dwight D. Eisenhower . In April 1961, he authorized a failed joint - CIA attempt to overthrow the Cuban government of Fidel Castro in the Bay of Pigs Invasion . He subsequently rejected Operation Northwoods plans by the Joint Chiefs of Staff to orchestrate false flag attacks on American soil in order to gain public approval for a war against Cuba . In October 1962, U.S. spy planes discovered that Soviet missile bases had been deployed in Cuba; the resulting period of tensions, termed the Cuban Missile Crisis, nearly resulted in the breakout of a global thermonuclear conflict . Domestically, Kennedy presided over the establishment of the Peace Corps and supported the civil rights movement, but he was largely unsuccessful in passing his New Frontier domestic policies . </P>

How old was john f. kennedy when he became president