using System; public class Test{ public static void Main() { Console.Write(42 % 0); }}
Standard input is empty
prog.cs(7,34): error CS0020: Division by constant zero Compilation failed: 1 error(s), 0 warnings
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!