CEILING:
Function Declaration: double ceilf(double);
this function rounds a number up. It returns the smallest integer greater than or equal to x.

Flooring:

Function Declaration:double floor(double x)
this function rounds a number up. returns the largest integer value less than or equal to x.

Required Header: #include <cmath>

 

output:

CEILING
Ininitial number = 2.4
Initial number rounded up = 3
Flooring
Initial number =2.4
Inintial number rounded up =2