US President Donald Trump has said he wants to see a strong Iran and that he is not seeking regime change in Tehran, while Iranian President Hassan Rouhani has confirmed his readiness to hold meetings as long as they serve his country's national interests.

Trump called on Iran on the sidelines of the Group of Seven summit in the French city of Biarritz to change its behavior and abandon its nuclear projects.

Trump said the invitation of Iranian Foreign Minister Mohammad Javad Zarif to the summit was not surprising, pointing out that his French counterpart Emmanuel Macron informed him, but added that it is too early to hold direct meetings with the Iranians.

The US president said he would discuss the issue of Iranian ballistic missiles in France on Monday.

Iranian Foreign Minister Javad Zarif said Tehran's active diplomacy and constructive cooperation efforts were continuing.

He said in a tweet on Twitter that his talks with the French side, on the sidelines of the summit of the seven countries in southern France, were intense.

Zarif said that during the talks had been advised advisers from Britain and Germany on the results of the talks, and the way forward is difficult, but worth trying.

Zarif, Macron and his French counterpart Jean-Yves Laudrian and representatives of Germany and Britain met the two European countries participating in the 2015 nuclear deal, from which the United States withdrew.

In this context, Iranian President Hassan Rouhani said that all methods should be used to achieve what he described as the national interests of his country.

Rouhani said during a speech in Tehran that he would not hesitate to participate in any meeting or meet anyone if it would contribute to the solution of the problems of his country.

Washington has been putting maximum pressure on Iranian leaders since it withdrew from the deal and reimposed sanctions on Tehran, which has responded by halting some of its commitments under the deal and gradually resuming its nuclear activities.