Source Code:-
using System;
namespace RupamSolutions
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(Volume(10));
Console.WriteLine(Volume(2.5F, 10));
Console.WriteLine(Volume(100L, 75, 15));
Console.ReadKey();
}
static int Volume(int x)
{
return (x * x * x);
}
static double Volume(float r, int h)
{ return (3.14 * r * r * h);
}
static long Volume(long l, int b, int h)
{
return (l * b * h);
}
}
}
0 Comments