Skip to content

Instantly share code, notes, and snippets.

@SteveGilham
Created April 14, 2015 20:31
Show Gist options
  • Select an option

  • Save SteveGilham/87c4954e8e0ecd513eef to your computer and use it in GitHub Desktop.

Select an option

Save SteveGilham/87c4954e8e0ecd513eef to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Text;
namespace negatives
{
class Program
{
static void Main(string[] args)
{
int i = -57;
int a = i/2;
int b = i>>1;
Console.WriteLine("/2 -> " + a + "; >>1 -> " + b);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment