입출력 예
입력 #1
100
출력 #1
100 is even
입력 #2
1
출력 #2
1 is odd
나머지 : %
산술연산자
using System;
public class Example
{
public static void Main()
{
String[] s;
Console.Clear();
s = Console.ReadLine().Split(' ');
string result = "";
int a = Int32.Parse(s[0]);
result = a % 2 == 0 ? "even" : "odd";
Console.Write("{0} is {1}", a, result);
}
}