Advertisement
Patoaomolho

equacaozinha

Sep 21st, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. main(){
  5. float resultado,x;
  6.  
  7. printf("Digite o valor de x: ");
  8. scanf("%f",&x);
  9.  
  10. resultado = (3*pow(x,2)) + 2/x + (sqrt(3*x));
  11.  
  12. printf("O resultado da sua equacao e: %.2f",resultado);
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement