Advertisement
Mary_99

ex.2.4

Nov 22nd, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3. #include <math.h>
  4. int main()
  5. {
  6.     float n;
  7.     n = 1;
  8.     int a;
  9.     int b;
  10.     int i;
  11.     printf("Select a =\n");
  12.     scanf("%f", &a);
  13.     printf("Select b =\n");
  14.     scanf("%f", &b);
  15.    
  16.     for ( i = a; i<= b; i ++)
  17.  
  18.     {
  19.         if((pow(i,3)+(20*i))>=(3*pow(i, 2)+370))
  20.         printf("%d\n", i);
  21.     }
  22.  
  23.  
  24.  
  25.    return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement