oclockvn
4/6/2015 - 6:49 AM

debug_basic.cs

static void Main(string[] args)
{
 int x = 5;
 int y = 3;
 int sum;

 sum = Sum(x, y);

 Console.WriteLine("{0} + {1} = {2} ", x, y, sum);

 Console.ReadLine();
}

static int Sum(int x, int y)
{
 int s = 0;
 s = x + y;
 return s;
}