While addressing US military troops for the first time as president, Donald Trump said America and its allies will defeat radical Islamic terrorism.