using System;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
try
{
Method(10, 13, 18);
Method(80, 60);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
static void Method(int x, int y = 20)
{
Console.WriteLine("1. {0}, {1}", x, y);
}
static void Method(int x, int y = 20, int z = 30)
{
Console.WriteLine("2. {0}, {1}, {2}", x, y, z);
}
}
}
/*
run:
2. 10, 13, 18
1. 80, 60
*/