using System;
namespace myCSharp1
{
class Program
{
static void Main(string[] args)
{
byte a = 240;
Console.WriteLine($"a={a}"); // 10 진수
byte b = 0b1111_0000;
Console.WriteLine($"b={b}"); // 2 진수
byte c = 0xF0;
Console.WriteLine($"c={c}"); // 16 진수
}
}
}
'PROGRAMMING LANGUAGE > C#' 카테고리의 다른 글
StringBuilder (0) | 2022.02.22 |
---|---|
인덱서 (0) | 2022.02.21 |
string (0) | 2022.01.20 |
Console 기능 (0) | 2022.01.19 |
헬로우 월드 (0) | 2022.01.17 |