Kuncavia

EvenOrOdd

Sep 14th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. using System;
  2.  
  3. class EvenOrOdd
  4. {
  5.     static void Main(string[] args)
  6.     {
  7.         var num = Double.Parse(Console.ReadLine());
  8.         if (num % 2 == 0)
  9.             Console.WriteLine("even");
  10.         else
  11.             Console.WriteLine("odd");
  12.  
  13.     }
  14. }
Add Comment
Please, Sign In to add comment