President Tito of Yugoslavia joined President Carter yesterday in urging international efforts to settle the Somali-Ethiopian dispute and preserve independence and nonaligned position of these two countries."

The two called for a peaceful settlement in the Horn of Africa in a joint statement at the end of Tito's three day visit to Washington. It coincided with reports reaching here about Somali military setbacks against the Soviet and Cuban-backed Ethiopian army.

The Yugoslav leader said his foreign minister, Milos Minic, will fly to both Ethiopa and Somalia nest week to explore possibilites for mediation.

In an interview with Walter Cronkyte of CBS News, Tito said Wednesday night that Soviet and Cuban Personnel "will have to leave" Ethiopia once settlement is reached.

The joint statement made no direct mention to the Soviet and Cuban pressence in the Horn of Africa. But Tito said in a ganquet speech that a settlement should be worked out "without interference from the outside."

The 85-year-old Tito, who is one of the leading figures in the Third World, was expected to raise the Somali-Ethiopian dispute at a meeting of the coordinating bureau of the non-aligned movement in Kabul next month.

The joint statement reaffirmed a pledge of continuing U.S. support for Yugoslavia's independence. It made no mention of the Yugoslav request for U.S. arms although Defense Secretary Harold Brown took part in the discussions along with Vice President Mondale, Secretary of State Cyrus R. Vance Abigniew Brzezinski.

U.S. official said privately that dicussions about sale of U.S. arms to Yugoslavia are now conducted at a technical level and that the Yugoslavs are likely to get most of the items on their shopping list.

Apart from an exchange of views on East-West relations and the Middle East, the rwo sides agreed to expand bilateral trade and joint economic ventures. The Carter administration also pledged to take "firm measure" against anti-Tito exiles in the United State and "to prevent and to prosecute" terrorist activities against Yugoslav deplomatic and commercial offices in this country.

The90-minute meeting with Carter yesterday ended Tito's visit here. He and his party departed last night from Andrews Air Force Base for London, where Tito will pay an official visit to Britain.

The Bristish visit winds up a world tour of key capitals Tito had undertaken over the past several months in an effort to ensure Yugoslavia's security after his death. The tour included Moscow and Peking.

Unlike his previous tours, Tito traveled this time without his wife Jovanka. She had disappeared from public view last fall, allegedly for medlic view last fall, allegedly for medling in state affairs. Asked by Cronkite about Jovanka, Tito said that her absence was "entirely a personal thing with no connection at all with politics."