Ask 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 of a number can be obtained by raising the number to the 1/4 or. 25 power).

+5
Answers (1)
  1. 25 June, 15:29
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers