Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- float x, resul;
- printf("\nInforme o valor de x: ");
- scanf("%f", &x);
- if ((pow(x,2) -16) <= 0)
- {
- printf("\nNao e possivel!!\n");
- return -1;
- }
- else
- resul = (5*x + 3)/ sqrt (pow(x,2) -16);
- printf("\nO resultado e: %f\n", resul);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment