Advertisement
daniv1

29.2(працює)

Oct 29th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. double f(double a, double b,double c)
  5. {
  6.     return fabs(a+b)*(2.0 + cos(c)*cos(c)/(a+b))/exp(a-b);
  7. }
  8. int main(void)
  9. {
  10.     double a,b,c;
  11.     printf("Input A\n");
  12.     scanf_s("%lf", &a);
  13.     printf("Input B\n");
  14.     scanf_s("%lf", &b);
  15.     printf("Input G\n");
  16.     scanf_s("%lf", &c);
  17.     printf("%g\n",a);
  18.     printf("%g\n",b);
  19.     printf("%g\n",c);
  20.     double y = f(a,b,c);
  21.     printf("Y = %g",y);
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement