Â
In this, we are going to write a program to find cube root of a number with the help of C programming language.
#include <stdio.h>
#include <math.h>
int main()
{
double num, cubeRoot;
printf("Enter the number: ");
scanf("%lf",&num);
// Calculating Cube root
cubeRoot = cbrt(num);
printf("Cube root of %.2lf = %.2lf", num, cubeRoot);
return 0;
}
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP