Logo 
Search:

C Programming Article

Submit Article
Comments on Program to compute area under a curve

Write a program to compute area under a curve.


Ms Leeli
Ms Leeli from Brunei DarussalamApr 13
it doesnt work in turbo c++
can you give the program in turbo c++ with the same output

Output

AREA UNDER A CURVE
Enter lower limit: 0
Enter upper limit: 3
Enter number of trapezoids: 30
TOTAL AREA = 12.005000

AREA UNDER A CURVE
Enter lower limit: 0
Enter upper limit: 3
Enter number of trapezoids: 100
TOTAL AREA = 12.000438





for example


#include<stdio.h>
main()

...........


Please enter your Comment
  • Comment should be atleast 15 Characters.
  • Please put code inside [Code] your code [/Code].