Inflation can affect the economy in several ways.