help with calculating the area

i have to write a c++ program to estimate the area under the curve y=x^2 from x1=1 to x2=10 and i have to use Riemann sum to compute the area for
n=10
n=100
n=1000
Do you know how to do this with paper and pencil? That would be the first step. Try something and post your code when you get stuck.
Topic archived. No new replies allowed.