using System;
public class Program {
public static void Main() {
Console.Write("Input integer:");
int i = Int32.Parse(Console.ReadLine());
if ((i % 2) == 0) Console.WriteLine("Given integer is even");
else Console.WriteLine("Given integer is odd");
}
}
Comments
Leave a comment