Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <math.h>
- double f(double x)
- {
- return sqrt(2*x+1);
- }
- int main()
- {
- double a,b,I;
- printf("Введите значение а: ");
- scanf("%lf",&a);
- printf("Введите значение b: ");
- scanf("%lf",&b);
- I=(b-a)/b*(f(a)+4*f((b+a)/b)+f(b));
- printf("I= %lf",I);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement