Untitled

 avatar
unknown
c_cpp
2 years ago
171 B
3
Indexable
#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);
	}
	
}
Editor is loading...
Leave a Comment