Europe's biggest economy, Germany, grew by 0.3% in the second quarter, helped by exports and domestic consumption.

France announced its economy had recorded zero growth in the period, which was better than had been expected.

The French economy had also posted zero growth in the previous two quarters.

GDP measures the total amount of goods and services produced by an economy.

"Germany has asserted itself thanks to growing exports to countries outside the eurozone," said Christian Schulz at Berenberg Bank.

"It's hardly a surprise that consumption has increased due to low unemployment, rising wages and a low rate of inflation."

'Vicious circle'

The economies of the 27 members of the EU also contracted by 0.2%.

You might say that Germany is finally getting a taste of what the periphery has been going through for the past year or so.

By Stephanie FlandersEconomics editor

Among the eurozone's biggest contractions, Portugal's GDP shrank 1.2%, Cyprus recorded a 0.8% contraction and Italy was down 0.7%.

Comparable figures from Ireland and Greece are not yet available.

On Monday, Greece released GDP figures that showed its economy contracted by 6.2% in the second quarter, compared with the same period a year earlier, but did not provide figures for the quarter compared with the previous quarter.

The first quarter's zero growth means the eurozone is still not in recession on the generally accepted definition of two consecutive quarters of negative growth, but the outlook for the rest of the year is gloomy.

"What we see is a vicious circle of budget cuts, high interest rates in the periphery and sovereign debt rising," said Aline Schuiling at ABN Amro.

"Policymakers are moving very slowly. We expect another contraction in Q3."

Greece, Spain, Italy, Cyprus and Portugal, all of which are receiving assistance from European bailout funds, are in recession.

"Overall, the story of a resilient core and a floundering periphery continues," said Azad Zangana at Schroders.

"The resilience of the core economies is likely to be tested in the coming quarters, with leading indicators suggesting slowing order books and falling business confidence."

An example of the leading indicators was the ZEW index of investor sentiment in Germany, which has declined for the fourth consecutive month to its lowest level this year.

View from Germany

By Stephen EvansBBC News, Berlin

Germany is an exporting economy, so when some of its prime markets go into recession, its own economy suffers.

As one of the country's newspapers put it: "If our neighbours are gradually drowning, at some point Germany will be in deep water too."

Last week, some of the country's world-leading companies reported drops in profits. Siemens, the huge engineering company, is trying to cut costs; Thyssen Krupp, the steel-maker, announced it was reducing the hours of some employees.

What isn't clear is whether the slowdown will prompt German voters to conclude that they should be more reluctant to help Greece, Spain and the other euro countries in difficulty, or whether it might lead them to conclude that their government's policy of eurozone austerity is making things worse, including in Germany itself.

View from France

By Christian FraserBBC News, Paris

It comes to something when stagnation in France brings a sigh of relief - but the latest figure on economic output is slightly better than was anticipated.

The Bank of France had predicted the country would slip into recession in the autumn, with two consecutive periods of negative growth.

But across the economic spectrum, the other figures are poor.

Consumer confidence is falling. Unemployment has risen - for the 14th consecutive month - and in September, the new Socialist government will be hit with another slew of redundancies.

All together, the eurozone countries are locked into a downward spiral, with worrying implications for the UK economy and the embattled German Chancellor, Angela Merkel.

The French President says there has never been a greater need for European stimulus. But at home, business leaders warn the 2013 budget, to be debated in September, must contain serious structural reform of French public spending, removing the considerable social costs that are damaging new business investment.