The code below should output the each 10th term (0.0, 10.0, 20.0, etc...) till 100.0. But it outputs only "0". Does anyone know what's the problem?
include <iostream>
include <cmath>
using namespace std;
for (double t = 0.0; t < 100.0; t += 0.1)
{
if (remainder(t, 10.0) == 0)
{
cout << t << "\n";
}
}