Skip to main content

C#: Program #27 (Methods2)

using System;

namespace Methods2
{
    class Program
    {
        static void Main(string[] args)
        {
            int solution=5;

            cube(solution,out solution);



            Console.WriteLine("Solution is {0}",solution);
            Console.ReadKey();
        }


        static void cube(int a,out int s)
        {
            s = a * a * a;

        }
    }
}

Comments

Popular posts from this blog