BitOperation Back
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class BitOperation
{
public static void Main()
{
int varA = 10;
int varB = 20;
int andResult = varA & varB;
Console.WriteLine("10 & 20 = {0}", andResult);
int orResult = varA | varB;
Console.WriteLine("10 | 20 = {0}", orResult);
int notorResult = varA ^ varB;
Console.WriteLine("10 ^ 20 = {0}", orResult);
Console.WriteLine("~ {0:x8} = {1:x8}", varA, ~varA);
Console.WriteLine("{0:x8} >> 3 = {1:x8}", varA, varA >> 3);
Console.WriteLine("{0:x8} << 3 = {1:x8}", varA, varA << 3);
}
}
}
As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.
Notice: This plugin has used Cookie to store your token with an expiration.