Ask Question
25 December, 10:25

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 December, 13:16
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers