Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Globalization;
- namespace ConsoleApp8
- {
- class Program
- {
- static void Main(string[] args)
- {
- int num;
- string result = Console.ReadLine();
- int.TryParse(result, out num);
- if (num % 2 == 0)
- Console.WriteLine("even");
- else
- Console.WriteLine("odd");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement