using System;

namespace InsideMethods
{
	class Tester
	{
		public void Run()
		{
			int x = 5;
			int doubleX = 0;
			int tripleX = 0;
			DoublerAndTripler(x, ref doubleX, ref tripleX);
			Console.WriteLine("Podwojone {0} = {1}; potrojone {2} = {3}",
			   x, doubleX, x, tripleX);
		}

		static void DoublerAndTripler(
		   int theVal, ref int doubleValue, ref int tripleValue)
		{
			doubleValue = theVal * 2;
			tripleValue = theVal * 3;
		}

		static void Main()
		{
			Tester t = new Tester();
			t.Run();
		}
	}
}
