Advertisement
shadvoll

laba2_sep_2019

Sep 13th, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. #define pi 3.14159
  4.  
  5. int main()
  6. {
  7.     float expr1 = 0, expr2 = 0, answ = 0;
  8.     // float x = 14.26, y = 1.22, z = 3.5e-2;
  9.     float x = 0 , y = 0 , z = 0;
  10.     printf("Insert X : ");
  11.     scanf("%f",&x);
  12.     printf("Insert Y : ");
  13.     scanf("%f",&y);
  14.     printf("Insert Z : ");
  15.     scanf("%f",&z);
  16.     expr1 = 2*cos(x-pi/6)/(0.5+pow(sin(y),2));
  17.     expr2 = (1+z*z/(3-z*z/5));
  18.     answ = expr1*expr2;
  19.     printf("answer is  %f",answ);
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement