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;
- namespace even_or_not
- {
- class Program
- {
- static void Main(string[] args)
- {
- var number = double.Parse(Console.ReadLine());
- if (number % 2 == 0)
- {
- Console.WriteLine("even");
- }
- if (number % 2 == 1 OR number % 2 == 0)
- {
- Console.WriteLine("odd");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement