Ask Question
25 April, 04:39

Write, compile, and execute a C program that calculates and returns the fourth root of the number 81.0, which is 3. (hint: The fourth root of a number can be obtained by raising the number to the 1/4 or. 25 power).

+1
Answers (1)
  1. 25 April, 05:34
    0
    result=pow (value, 0.25);

    printf ("The 4th root is:%2. f", result);

    Explanation:

    In order to accomplish the task we need a library called math. h.

    //4 root code

    #include

    #include / /adding the library math. h

    int main ()

    {

    double value=81.0, root=0.25, result; / /declaring the variables

    result=pow (value, root); / /The function Pow will return the power raised to the base number

    printf ("The 4th root is:%2. f", result); / /print the result

    return 0;

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write, compile, and execute a C program that calculates and returns the fourth root of the number 81.0, which is 3. (hint: The fourth root ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers