fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. Check(9);
  8. Check(10);
  9.  
  10.  
  11. }
  12.  
  13. static void Check (int n)
  14. {
  15. if((n & 1) == 0) Console.WriteLine("the number is even");
  16. else Console.WriteLine("the number is odd");
  17.  
  18. }
  19. }
  20.  
Success #stdin #stdout 0.05s 30584KB
stdin
Standard input is empty
stdout
the number is odd
the number is even