grach

EvenOrOdd

Jul 11th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.31 KB | None | 0 0
  1. using System;
  2.  
  3. public class Program
  4. {
  5.     public static void Main()
  6.     {
  7.  
  8.         var a = double.Parse(Console.ReadLine());
  9.  
  10.         if (a % 2 == 0)
  11.  
  12.  
  13.         {
  14.             Console.WriteLine("even");
  15.         }
  16.         else
  17.  
  18.         {
  19.             Console.WriteLine("odd");
  20.         }
  21.  
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment