The bombings occurred despite security being tightened across Baghdad for Ahmadinejad's visit, the first state visit by an Iranian president since the Iran-Iraq war.
US military commanders blame the al-Qaeda for most large-scale bombings in Iraq but there was no immediate indication of who was responsible for Monday's bombings or whether they were directly linked to Ahmadinejad's visit.