#include
#include
int main() {
int a,b,n;
std::cin >> a >> b >> n;
double xi[n];
double yi[n];
double h = (b - a + 0.0) / n + 0.0;
for (int i = 0; i
Подробнее здесь: [url]https://stackoverflow.com/questions/79130915/c-unexpected-behaviour-in-floating-point-operation[/url]