The German economy stagnated in the second quarter compared to the previous quarter, the country's Federal Statistical Office announced on Friday.