Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<windows.h>
- #include<math.h>
- int main()
- {
- float x = 0;
- float y = 0;
- int i = 0;
- printf("input num x : ");
- scanf("%f",&x);
- for(i = 1; i<12; i++)
- {
- y = y + i*pow(x,11 - i);
- }
- printf("y = %.2f",y);
- system("pause>0");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment