Problems
254 - Ceiling and Floor
SUBMIT PROBLEM

Ceiling and Floor

Time Limit: 1 sec

 

The Problem

In mathematics

Floor function floor ()” map a real number to the largest previous

Ceiling functionceil ()” map a real number to the smallest following integer.

 

Example:

Suppose M = 2.31

The ceiling of the value is 3

The flooring of the value is 2

 

 

The Input

The input file will contain a single floating number.

 

The Output

The output will print the value of ceiling and floor in two separate lines.

 

Sample Input

2.31

 

Sample Output

Floor 2

Ceil 3

 

 

 

 

Problem Setter: Samia Safa Ahmed