Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- double f(double a, double b,double c)
- {
- return fabs(a+b)*(2.0 + cos(c)*cos(c)/(a+b))/exp(a-b);
- }
- int main(void)
- {
- double a,b,c;
- printf("Input A\n");
- scanf_s("%lf", &a);
- printf("Input B\n");
- scanf_s("%lf", &b);
- printf("Input G\n");
- scanf_s("%lf", &c);
- printf("%g\n",a);
- printf("%g\n",b);
- printf("%g\n",c);
- double y = f(a,b,c);
- printf("Y = %g",y);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement