Here is source code of the C# Program to Find the Cube Root of a Given Number. The C# program is successfully compiled and executed with Microsoft Visual Studio. The program output is also shown below.
* C# Program to Find the Cube Root of a Given Number
public static void Main()
double num, res;
Console.Write("Enter the Number : ");
num = double.Parse(Console.ReadLine());
res = Math.Ceiling(Math.Pow(num, (double)1 / 3));
Console.Write("Cube Root : " + res);
Here is the output of the C# Program:
Enter the Number : 8 Cube Root : 2
Sanfoundry Global Education & Learning Series – 1000 C# Programs.