Untitled

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

int main() {
	setlocale(LC_ALL, "Russian");
	float a;
	cin >> a;
	if ((a - int(a)) * 10 >= 5) {
		cout << int(a) + 1;
	}
	if ((a - int(a)) * 10 < 5) {
		cout << int(a);
	}
}
Leave a Comment