Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #include <conio.h>
- void main()
- {
- int n,x;
- float sum;
- sum = 0;
- printf("Vvedite cherez probel n & x ");
- scanf("%i%i",&n,&x);
- for (int k = 1; k <= n; ++k)
- sum = sum + ((pow(-1,k)*pow(x,k))/(pow(2*k+1,k)));
- printf("%f",sum);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment