Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- float x;
- float y;
- printf( "Enter the x = \n");
- scanf("%lf", &x);
- if (x >= -5 && x <=5)
- {
- y = 2*x*x+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