RANGE DATA TYPES IN CODE - كورسات

RANGE DATA TYPES IN CODE

يجب تسجيل الدخول أو التسجيل لتتمكّن من التعليق
tawfeq ali mahmood
منذ 6 سنوات
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("byte");
Console.WriteLine(byte.MinValue);
Console.WriteLine(byte.MaxValue);
Console.WriteLine("^^^^^^^^^^^^^^");

Console.WriteLine("sbyte");
Console.WriteLine(sbyte.MinValue);
Console.WriteLine(sbyte.MaxValue);
Console.WriteLine("^^^^^^^^^^^^^^");

Console.WriteLine("int");
Console.WriteLine(int.MinValue);
Console.WriteLine(int.MaxValue);
Console.WriteLine("************");

Console.WriteLine("uint");
Console.WriteLine(uint.MinValue);
Console.WriteLine(uint.MaxValue);
Console.WriteLine("+++++++++++++");

Console.WriteLine("short");
Console.WriteLine(short.MinValue);
Console.WriteLine(short.MaxValue);
Console.WriteLine("@@@@@@@@@@@@@");

Console.WriteLine("ushort");
Console.WriteLine(ushort.MinValue);
Console.WriteLine(ushort.MaxValue);
Console.WriteLine("&&&&&&&&&&&&&&&");

Console.WriteLine("double");
Console.WriteLine(double.MinValue);
Console.WriteLine(double.MaxValue);
Console.WriteLine("!!!!!!!!!!!!!");

Console.WriteLine("decimail");
Console.WriteLine(decimal.MinValue);
Console.WriteLine(decimal.MaxValue);
Console.WriteLine("%%%%%%%%%%%%%%%%");

Console.WriteLine("char");
Console.WriteLine(char.MinValue);
Console.WriteLine(char.MaxValue);
Console.WriteLine("%$%$%$%$%$%$%$");


Console.ReadLine();


}
}
}