using System;
namespace NumbericTypes
{
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine ("Hello World!");
byte B_TempValue = byte.MaxValue;
sbyte SB_TempValue = sbyte.MaxValue;
short S_TempValue = short.MaxValue;
ushort US_TempValue = ushort.MaxValue;
int IN_TempValue = int.MaxValue;
uint UI_TempValue = uint.MaxValue;
long LO_TempValue = long.MaxValue;
ulong UL_TempValue = ulong.MaxValue;
char CH_TempValue = char.MaxValue;
Console.WriteLine ("byte = {0}", B_TempValue);
Console.WriteLine ("sbyte = {0}", SB_TempValue);
Console.WriteLine ("short = {0}", S_TempValue);
Console.WriteLine ("ushort = {0}", US_TempValue);
Console.WriteLine ("int = {0}", IN_TempValue);
Console.WriteLine ("uint = {0}", UI_TempValue);
Console.WriteLine ("long = {0}", LO_TempValue);
Console.WriteLine ("ulong = {0}", UL_TempValue);
Console.WriteLine ("char = {0}", CH_TempValue);
}
}
}
| cs |
2017년 2월 20일 월요일
c# - 데이터 형식 - 기본형
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기