Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- src code
- /*
- * C# Program to Check whether the Entered Number is Even or Odd
- */
- using System;
- namespace check1
- {
- class Program
- {
- static int Main(string[] args)
- {
- double a = 2.0;
- int i = (int)a;
- if (i != 2)
- Console.Write("IS this it: "+i);
- uint ui = (uint)a;
- if (ui != 2)
- Console.Write("IS this it: "+ui);
- Console.Write("END of program\n");
- return 0;
- }
- }
- }
Add Comment
Please, Sign In to add comment