#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main()
{
int x;
float wynik;
puts("podaj x");
scanf("%d", &x);
if(x>=-5 && x<=5)
{
wynik=2*x*x+3*x-1;
}
else if(x<-5)
{
wynik=(x+5)*(x+5)-10;
}
else if (x>5)
{
wynik=(1/2.0*x-2)*(2-3/4.0*x);
}
printf("wynik dzialania wynosi: %f
" ,wynik);
return 0;
}