Solve a Hopido puzzle: Difference between revisions

Content added Content deleted
Line 1,472: Line 1,472:
if M[R,C] = 0 then print(" ") else printf("%2d ", M[R,C]) end,
if M[R,C] = 0 then print(" ") else printf("%2d ", M[R,C]) end,
if C = NC then nl end
if C = NC then nl end
end. /*
end.
</lang>
24 15 23 26
Output:
<pre> 24 15 23 26
6 9 12 5 8 11 4
6 9 12 5 8 11 4
14 17 20 25 16 19 22
14 17 20 25 16 19 22
Line 1,479: Line 1,481:
13 18 21
13 18 21
1
1
CPU time 0.019 seconds, correct */
CPU time 0.019 seconds</pre>
</lang>


=={{header|Prolog}}==
=={{header|Prolog}}==