include stdio include stdlib include math int main int argc char argv

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(int argc, char *argv[])
{
int b=5, x, Xn,Xk,step;
double y;
printf("Xn=");
scanf("%lf",&Xn);
printf("Xk=");
scanf("%lf",&Xk);
printf("step=");
scanf("%lf",&step);
x=Xn;
for(x=Xn;x<=Xk;x+=step)
{
y=x*x+b;
printf("y = %lf",y);
}
system("PAUSE");
return 0;
}