/**********************************/
/*★ Data Type 一覧 前田 稔 ★*/
/**********************************/
using System;
class Text
{
public static void Main()
{
string format = "{0, -8}:{1}~{2}";
string dot = "----------------";
Console.WriteLine(format, "sbyte",sbyte.MinValue, sbyte.MaxValue);
Console.WriteLine(format, "short", short.MinValue, short.MaxValue);
Console.WriteLine(format, "int", int.MinValue, int.MaxValue);
Console.WriteLine(format, "long", long.MinValue, long.MaxValue);
Console.WriteLine(dot);
Console.WriteLine(format, "byte", byte.MinValue, byte.MaxValue);
Console.WriteLine(format, "ushort", ushort.MinValue, ushort.MaxValue);
Console.WriteLine(format, "uint", uint.MinValue, uint.MaxValue);
Console.WriteLine(format, "ulong", ulong.MinValue, ulong.MaxValue);
Console.WriteLine(dot);
Console.WriteLine(format, "float", float.MinValue, float.MaxValue);
Console.WriteLine(format, "double", double.MinValue, double.MaxValue);
Console.WriteLine(dot);
Console.WriteLine(format, "decimal", decimal.MinValue, decimal.MaxValue);
Console.WriteLine(dot);
}
}
|