Untitled
Anonymous
c_cpp
11/29/2023 1:58 PM
308 B
32
Indexable
#include <iostream>
using namespace std;
int main()
{
float a;
float b;
cin >> a;
b = a - (int)a;
if (b >= 0.5) {
cout << (int)a + 1;
}
else {
cout << int(a);
}
}Editor is loading...
Leave a Comment