Halt and catch fire: Difference between revisions

Added C#
(→‎{{header|Fermat}}: -alterative)
(Added C#)
Line 94:
</pre>
The output depends on the compiler and platform but should be similar.
 
=={{header|C sharp}}==
{{works with|C sharp|9}}
This throws a DivideByZeroException at runtime.<br/>
<lang csharp>int a=0,b=1/a;</lang>
This will throw a compile-time exception, so technically not a valid solution.
<lang csharp>int a=1/0;</lang>
This one-liner also works
<lang csharp>throw new System.Exception();</lang>
 
=={{header|F_Sharp|F#}}==
Line 104 ⟶ 113:
exit status 1
</pre>
 
=={{header|Factor}}==
===REPL===
196

edits