Consumer inflation in the United States hit a three-year high in April, government data showed Tuesday, with the economic fallout of the Iran war rippling through the world's largest economy.

Higher inflation has persisted as rising prices pressure consumers.

U.S. consumer prices climbed a sharply again last month as the 10-week war with Iran pushed energy prices higher.