m.ardito
0
Q:

ceil in c

#include <math.h>

ceil(num);
2
// C++ program to demonstrate ceil function 
#include <iostream> 
#include <cmath> 
using namespace std; 
  
// Driver function 
int main() 
{ 
    // using ceil function which return 
    // floor of input value 
    cout << " Ceil is : " << ceil(2.5) << endl; 
    cout << " Ceil is : " << ceil(-2.3) << endl; 
  
    return 0; 
} 
1

New to Communities?

Join the community