Advertisement
Mary_99

ex1.6

Nov 21st, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main()
  4. {double y;
  5. double x ;
  6. printf("podaj liczbe\n");
  7. scanf("%lf", &x);
  8. if (x>=-5&&x<=5)
  9.     y=2*pow (x,2)+3*x+1;
  10. else
  11.     y=pow (x+5,2)-10;
  12. printf("%f",y);
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement