в две строчки решил,

СПАСИБО ВИЖАК
Anonymous
c_cpp
11/25/2023 6:11 PM
220 B
10
Indexable
#include <iostream>
using namespace std; int main(){	float a; cin >> a;	float a2 = a - int(a);	if (a2 * 10 >= 5){ cout << int(a) + 1; }	else { cout << int(a); } }
Editor is loading...
Leave a Comment