print "--police-- --sanitation-- --fire--" for police = 2 to 7 step 2 for fire = 1 to 7 if fire = police continue sanitation = 12 - police - fire if sanitation = fire or sanitation = police continue if sanitation >= 1 and sanitation <= 7 print police using "######", fire using "############", sanitation using "###########" next fire next police