System Types Unsigned Integer Range C# with Example



System Types Unsigned Integer Range C# with Example

 using System;

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

			Console.WriteLine("Min of uint: {0}", uint.MinValue);
			Console.WriteLine("Max of uint: {0}\n", uint.MaxValue);
			
			Console.WriteLine("Min of ulong: {0}", ulong.MinValue);		
			Console.WriteLine("Max of ulong: {0}\n", ulong.MaxValue);
        }
    }
}
 

0 Comment's

Comment Form

Submit Comment