System Types Integer Range C# with Example



System Types Integer Range C# with Example

 using System;

namespace CSharpFundamentals
{
    class SystemTypesIntegerRange
    {
        private static void Main(string[] args)
        {
			Console.WriteLine("Max of short: {0}", short.MaxValue);
			Console.WriteLine("Min of short: {0}\n", short.MinValue);
			
			Console.WriteLine("Max of int: {0}", int.MaxValue);
			Console.WriteLine("Min of int: {0}\n", int.MinValue);
			
			Console.WriteLine("Max of long: {0}", long.MaxValue);
			Console.WriteLine("Min of long: {0}\n", long.MinValue);		
        }
    }
}
 

0 Comment's

Comment Form