Question: how ayub khan became president?
Answer: Muhammad Ayub Khan (Urdu: محمد ایوب خان‎; 14 May 1907 – 19 April 1974), was a Pakistani army general and the second President of Pakistan who forcibly assumed the presidency from the first president Iskander Mirza through coup in 1958, the first successful coup d'état of the country.