c sharp binary decimal hexadecimal to each other
- 2020-05-05 11:47:24
- OfStack
// decimal to binary
Console.WriteLine(Convert.ToString(69, 2));
// decimal to octal
Console.WriteLine(Convert.ToString(69, 8));
// decimal to hexadecimal
Console.WriteLine(Convert.ToString(69, 16));
// binary to decimal
Console. WriteLine (Convert. ToInt32 (" 100111101 ", 2));
// octal to decimal
Console. WriteLine (Convert. ToInt32 (" 76 ", 8));
// hexadecimal to decimal
FF Console. WriteLine (Convert. ToInt32 (" ", 16));
Console.WriteLine(Convert.ToString(69, 2));
// decimal to octal
Console.WriteLine(Convert.ToString(69, 8));
// decimal to hexadecimal
Console.WriteLine(Convert.ToString(69, 16));
// binary to decimal
Console. WriteLine (Convert. ToInt32 (" 100111101 ", 2));
// octal to decimal
Console. WriteLine (Convert. ToInt32 (" 76 ", 8));
// hexadecimal to decimal
FF Console. WriteLine (Convert. ToInt32 (" ", 16));