Untitled

Anonymous
c_cpp
11/26/2023 8:10 AM
228 B
15
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