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; }