on 17 July President Somoza resigned and the FSLN entered Managua, giving full control of the government to the revolutionary movements.