
int main() {
setlocale(LC_ALL, "Russian");
double a, b, h;
cout << "Введите a:";
cin >> a;
cout << "Введите b:";
cin >> b;
cout << "Введите h:";
cin >> h;
for (float x = a; x <= b; x + h)
if (x < 0) {
x = 0;
cout << y << " " << endl;
}
else if (x >= 0 && x != 1) {
x = pow(x, 2) + 1;
cout << y << " " << endl;
}
else (x = 1); {
x = 1;
cout << y << " " << endl;
}
}