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

int main() {
	double x = 2.5;

	// Abs function
	printf("The absolute value of -4.7 is %.1lf\n", abs(-4.7));
	// Ceil function
	printf("The ceiling of %.1lf is %.1lf\n", x, ceil(x));
	// Floor function 
	printf("The floor of %.1lf is %.1lf\n", x, floor(x));
	// Round function
	printf("The rounded value of %.1lf is %.1lf\n", x, round(x));
	// Pow function
	printf("2 raised to the power of 3 is %.1lf\n", pow(2, 3));
	// Sqrt function
	printf("The square root of 9 is %.1lf\n", sqrt(9));
}

/*
This program uses several functions from the math.h library:

    abs: calculates the absolute value of a number
    ceil: rounds up a float to the nearest integer
    floor: rounds down a float to the nearest integer
    round: rounds a float to the nearest integer
    pow: calculates the power of a number (e.g., 2 raised to the power of 3)
    sqrt: calculates the square root of a number

The program demonstrates the usage of these functions with example values. The
output will show the result of each function call.
*/

