// integral(f(x),a,b)
#include "iostream.h"
#include "math.h"
float f(float x)
{
return sin(x);
}
void main()
{
float integral;
float a;
float b;
float x;
float dx;
a=1;
b=2;
dx=0.001;
integral=0;
x=a;
while(x<b)
{
integral+=f(x)*dx;
x+=dx;
};
cout << integral;
cin >> integral;
}
