using System;
namespace Example9
{
///
/// Summary description for Class1.
///
class Class1
{
///
/// The main entry point for the application.
///
[STAThread]
static void Main(string[] args)
{
Console.WriteLine(Min(3.3, 2.2));
Console.WriteLine(Min(3, 2));
Console.WriteLine(Min(3.3, 2));
}
static double Min(double x, double y)
{
if (x < y)
{
return x;
}
else
{
return y;
}
}
static int Min(int x, int y)
{
if (x < y)
{
return x;
}
else
{
return y;
}
}
}
}