Stock prices rose sharply on Thursday as easing concerns over European debt troubles and economic growth in the United States helped the Dow Jones industrial average end the second quarter with a modest gain.

The yield on the Treasury’s benchmark 10-year note rose as the Federal Reserve’s bond buying program ended and investors poured money into equities.

The Dow industrials closed up 152.92 points, or 1.25 percent, at 12,414.34. Although stocks tumbled for most of the month of June, a surge of 480 points this week helped give the Dow a gain of about 0.7 percent for the second quarter.

The Standard & Poor’s 500-stock index rose 13.23 points, or 1.01 percent, to 1,320.64, while the Nasdaq composite index was up 33.03 points, or 1.21 percent, at 2,773.52. Both the S.& P. and the Nasdaq were slightly lower for the quarter.