Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #define pi 3.14159
- int main()
- {
- float expr1 = 0, expr2 = 0, answ = 0;
- // float x = 14.26, y = 1.22, z = 3.5e-2;
- float x = 0 , y = 0 , z = 0;
- printf("Insert X : ");
- scanf("%f",&x);
- printf("Insert Y : ");
- scanf("%f",&y);
- printf("Insert Z : ");
- scanf("%f",&z);
- expr1 = 2*cos(x-pi/6)/(0.5+pow(sin(y),2));
- expr2 = (1+z*z/(3-z*z/5));
- answ = expr1*expr2;
- printf("answer is %f",answ);
- return 0;
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.