Programming

Adejoke
3.4GuidedPractice.docx

3.4 Guided PracticePre-Defined Functions Using math.h

The C standard library contains many different header files which hold the definitions of many different types of pre-defined functions.  

In this exercise, you will see how to use the square root ( sqrt()) and cubed root ( cbrt()) functions from the math.h header file.

Instructions

Follow these instructions to complete your assignment:

1. Select the Code tab and enter the code into your compiler.

2. Compile your code and run. Your output should match the image on the Output tab.

3. Paste a screenshot of your output (including the Title Bar showing the path and name of your code) into a Word document (.docx).

4. Submit the “.c” code file, which should include a comment line with your name and the date.

5. Save your files and upload them using the instructions below.

· Code

Graphical user interface, text, application, email Description automatically generated

Text Description automatically generated

image1.png

image2.png