C program to find cube of a number || Functions in C || No Arguments but Returns a value || C Programming
In this, we are going to see the Functions that have no arguments but returns a value, this program we are going to display Cube Root in C Programming Language.



#include <stdio.h>
#include <stdlib.h>
#include <math.h>

float cbt()
{
    float a, crt;
    printf("Enter a number:-\n");
    scanf("%f", &a);

    crt = cbrt(a);
    return crt;
}

float main()
{
    system("cls");
    float num;
    num = cbt();
    printf("Cube root of the given number is:- %.4f", num);
    return 0;
}
//........Coded by YASH ALLAPURIA

#ENJOY CODING

Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post