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;
}
}
}
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
Post a Comment