#include <stdio.h>

int main(void) {
	float x;
	//we ask for x...
	printf("Please enter x: ");
	scanf("%f",&x);
	//We do the calculation based on the function.
	//Because we won't need it any more, we store the result in x.
	if (x<-5) x=5*x*x;//first condition...
	else if (x>=0) x=3*x+5; //third condition...
	else x=x/(6+x);//second condition needn't be tested because we tested the others.
	printf("\n\nf(x)=%f",x);
	return 0;
}
