Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
152 B
1
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	float a;
	cin >> a;
	if (a >= int(a) + 0.5) cout << int(a) + 1;
	else cout << int(a);
}
Leave a Comment