Assume that you have a function j0 which generates the bessel function.

Then you have to divide the interval (0,10) in 50 steps

int n=50;

double a=0,b=10,x;

for (i=1;i<=n;i++) {

x=(b-a)*i/(n+1)+a;

printf ("Bessel for x=%f:%f\n",x,j0(x));

}

Then you have to divide the interval (0,10) in 50 steps

int n=50;

double a=0,b=10,x;

for (i=1;i<=n;i++) {

x=(b-a)*i/(n+1)+a;

printf ("Bessel for x=%f:%f\n",x,j0(x));

}