Uses else ifs, start with the most complex, i.e i%3 == 0 && i%5 == 0, then test i%3 == 0, then test i%5 == 0, last else sysout i