using System; public class Test { public static void Main() { Test t = new Test(); Console.WriteLine("isEven(10) : {0}, isEven(11) : {1}.", t.isEven(10), t.isEven(11)); } bool isEven(int number) { return number % 2 == 0; } }
Standard input is empty
isEven(10) : True, isEven(11) : False.
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!