Untitled
Anonymous
plain_text
11/06/2022 4:47 AM
428 B
19
Indexable
#include <iostream>
#include <math.h>
using namespace std;
int main ()
{
int a;
string d3;
float b, d, d2 = 0, c, c2 = 0;
cin >> a;
for (int i = 0; i < a; i++)
{
cin >> b;
c = float (int (b));
d = (b - int (b));
c2 += c;
d2 += d;
}
cout << c2-d2;
}Editor is loading...