Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {double y;
- double x ;
- printf("podaj liczbe\n");
- scanf("%lf", &x);
- if (x>=-5&&x<=5)
- y=2*pow (x,2)+3*x+1;
- else
- y=pow (x+5,2)-10;
- printf("%f",y);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement