Guest User

Untitled

a guest
Jan 10th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<windows.h>
  3. #include<math.h>
  4.  
  5.  
  6. int main()
  7. {
  8. float x = 0;
  9. float y = 0;
  10. int i = 0;
  11.  
  12. printf("input num x : ");
  13. scanf("%f",&x);
  14.  
  15.  
  16. for(i = 1; i<12; i++)
  17. {
  18. y = y + i*pow(x,11 - i);
  19. }
  20.  
  21. printf("y = %.2f",y);
  22.  
  23.  
  24. system("pause>0");
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment