using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Volume_of_the_cube
{
class Program
{
static void Main(string[] args)
{
double volumeOriginal = 27;
Console.WriteLine("The volume of the original cube: " + volumeOriginal);
double originalFace = Math.Pow(volumeOriginal, 1.0 / 3.0);
Console.WriteLine("The length of the faces of the original cube: " + originalFace);
double volumeNewCube = Math.Pow(originalFace * 2, 3);
Console.WriteLine("The volume of a cube with a doubling of the original length" + "\nof the face of the cube: " + volumeNewCube);
Console.WriteLine("The difference between the volumes of cubes: " + Math.Abs(volumeOriginal - volumeNewCube));
Console.ReadKey();
}
}
}
Comments