foreach firstSet { foreach firstPoint { foreach secondSet { foreach secondPoint { print distance to firstSetVsecondSet.xls } } } }