Answer
Janio Quadros, Goulart's predecessor, was the president of Brazil before Goulart assumed office as vice president. However, Quadros' tenure was short-lived as he resigned after seven months, leading Goulart to take over as acting president and subsequently become the 24th president of Brazil.