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;
- namespace Interesting_stuff
- {
- class Program
- {
- static void Main(string[] args)
- {
- int number;
- Console.WriteLine("input a number: ");
- number = int.Parse(Console.ReadLine());
- if ( ((number)&(1 << 0)) == 1)
- {
- Console.WriteLine("True");
- }
- else
- {
- Console.WriteLine("false");
- }
- Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement