Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- float x,
- y,
- e = 2.7182818284; // Число e = 2.7182818284;
- ///////////////////////////////////////////////////////////
- int main () //
- {
- printf("x = "); scanf("%f", &x);
- if(x < -7)
- {
- y = log(-x);
- printf("x < 7, y = %f\n", y);
- return 0;
- }
- if(x >= -7 && x <= 9)
- {
- y = pow(x, 2.7182818284);
- printf("-7 <= x <= 9, y = %f\n", y);
- return 0;
- }
- if(x > 9)
- {
- y = tan(x);
- y = sqrt(y);
- printf("x > 9, y = %f\n", y);
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement