Untitled
Anonymous
c_cpp
11/30/2023 5:12 PM
248 B
19
Indexable
#include <iostream>
using namespace std;
int main()
{
float n;
cin >> n;
int c = n;
float si = n - c;
if (si >= 0.5) cout << c + 1;
else cout << c;
}Editor is loading...
Leave a Comment