12345678910111213
# include <iostream> using namespace std; int main() { float nbr=0; cout << "Enter your number -> ";cin >> nbr; int nbr2 = (int)nbr; cout << nbr << " ->bigger is " << nbr2+1 << " and smaller is " << nbr2 << endl; return 0; }
floor()
ceil()