#include<iostream>
#include<cmath>
using namespace std;
int main()
{
double x;
x = 2.3;
cout << "ceil(" << x << ") = " << ceil(x) << endl;
cout << "floor(" << x << ") = " << floor(x) << endl;
return 0;
}
#include<cmath>
using namespace std;
int main()
{
double x;
x = 2.3;
cout << "ceil(" << x << ") = " << ceil(x) << endl;
cout << "floor(" << x << ") = " << floor(x) << endl;
return 0;
}
Comments
Post a Comment