Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main() {
- float a, b, c, xnach, xkon, dx;
- printf("Vvedite a,b,c,xnach,xkon,dx: ");
- scanf_s("%f %f %f %f %f %f", &a, &b, &c, &xnach, &xkon, &dx);
- float x = xnach;
- while ((xnach <= x) && (x <= xkon)) {
- float F;
- if ((x - 1 < 0) && (b - x != 0))
- F = a * x * x + b;
- else if ((x - 1 > 0) && (b=-x))
- F = (x - a) / x;
- else
- F = x / c;
- printf("%f ",F);
- x += dx;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement