RosettaCodeData/Task/Department-numbers/Yabasic/department-numbers.basic
2023-07-01 13:44:08 -04:00

10 lines
393 B
Text

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