Advertisement
dllbridge

Untitled

Feb 6th, 2024
970
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.71 KB | None | 0 0
  1.  
  2.  
  3. #include <stdio.h>
  4. #include  <math.h>
  5.  
  6.  
  7. float  x,
  8.        y,
  9.        e = 2.7182818284;                                 //  Число e = 2.7182818284;
  10.  
  11.  
  12. ///////////////////////////////////////////////////////////
  13. int main ()                                              //
  14. {
  15.    
  16.     printf("x = ");  scanf("%f", &x);
  17.  
  18.  
  19.     if(x < -7)
  20.     {
  21.        
  22.        y = log(-x);
  23.        
  24.        printf("x < 7, y = %f\n", y);
  25.        
  26.        return 0;   
  27.     }
  28.    
  29.     if(x >= -7 && x <= 9)
  30.     {  
  31.        
  32.        y = pow(x, 2.7182818284);
  33.        
  34.        printf("-7 <= x <= 9, y = %f\n", y);
  35.        
  36.        return 0;       
  37.     }  
  38.    
  39.     if(x > 9)
  40.     {
  41.        
  42.        y =  tan(x);
  43.        y = sqrt(y);
  44.        
  45.        printf("x > 9, y = %f\n", y);
  46.        
  47.        return 0;   
  48.     }  
  49. }
  50.  
  51.  
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement