Halt and catch fire: Difference between revisions
Content added Content deleted
(Added a shorter solution.) |
|||
Line 349: | Line 349: | ||
Another solution with the same number of characters (we could also use <code>mod</code> instead of <code>div</code>): |
Another solution with the same number of characters (we could also use <code>mod</code> instead of <code>div</code>): |
||
<syntaxhighlight lang="text">echo 1 div 0</syntaxhighlight> |
<syntaxhighlight lang="text">echo 1 div 0</syntaxhighlight> |
||
But the shortest solution may be: |
|||
<syntaxhighlight lang="nim">assert 1==0</syntaxhighlight> |
|||
=={{header|Pascal}}== |
=={{header|Pascal}}== |