SHARE
TWEET

laba2_sep_2019

shadvoll Sep 13th, 2019 (edited) 125 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
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. OK, I Understand
 
Top