Guest User

Untitled

a guest
Dec 10th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. int main(){
  2. float sen(x);
  3. int x, n, i;
  4. sen(x) = x;
  5. i=3;
  6.  
  7. printf("Insira o valor de x\n");
  8. scanf("%d", &x);
  9. printf("Insira o numero de termos");
  10. scanf("%d", &n);
  11.  
  12. for (i=3, i<=n, i+2){
  13. sen(x) = sen(x) - (potencia(x,i)/fatorial(i));
  14. }
  15.  
  16. printf("O valor da funcao = sen(x)", senx);
  17.  
  18. return 0;
  19. }
Add Comment
Please, Sign In to add comment