using System; public class Test { public static void Main() { int foo = 5 / 0.5f; Console.WriteLine(foo); } }
Standard input is empty
prog.cs(7,13): error CS0266: Cannot implicitly convert type `float' to `int'. An explicit conversion exists (are you missing a cast?) Compilation failed: 1 error(s), 0 warnings
Standard output is empty