Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
171 B
0
Indexable
Never
#include <iostream>

int main()
{
	double n = 0;
	std::cin >> n;
	if (n - int(n) < .5) {
		std::cout << int(n);
	}
	else {
		std::cout << int(n + 1);
	}
	
}
Leave a Comment