Mega Code Archive

 
Categories / C# / Development Class
 

Math Min Method returns the smaller of two 8-bit unsigned integers

using System; class Sample  {     public static void Main()      {         byte xByte1 = 1, xByte2 = 51;           Console.WriteLine(Math.Min(xByte1, xByte2));     } }