a(1). a(2). a(3). a(4). b(15). b(16). b(17). c(28). c(29).
Standard input is empty
[1, 15, 28] [1, 15, 29] [1, 16, 28] [1, 16, 29] [1, 17, 28] [1, 17, 29] [2, 15, 28] [2, 15, 29] [2, 16, 28] [2, 16, 29] [2, 17, 28] [2, 17, 29] [3, 15, 28] [3, 15, 29] [3, 16, 28] [3, 16, 29] [3, 17, 28] [3, 17, 29] [4, 15, 28] [4, 15, 29] [4, 16, 28] [4, 16, 29] [4, 17, 28] [4, 17, 29]
Warning: /home/FyWRGy/prog.pl:10: Goal (directive) failed: user: (a(_G356), b(_G358), c(_G360), write([_G356, _G358, _G360]), nl, fail)