{ }
1○2○3○4○5○6○7○8○9○10○11○12○13○14 ○int sum; if(x<= -5)
sum = x + 7;
else if(x<=2)
sum = x * x + 5 * x - 2;
else if(x<=10)
sum = x * x * x + 3 * x * x - 5;
else
return sum;
sum = x * x * x * x - 10 * x * x * x + 7 * x + 3;
{ }
1○2○3○4○5○6○7○8○9○10○11○12○13○14 ○int sum; if(x<= -5)
sum = x + 7;
else if(x<=2)
sum = x * x + 5 * x - 2;
else if(x<=10)
sum = x * x * x + 3 * x * x - 5;
else
return sum;
sum = x * x * x * x - 10 * x * x * x + 7 * x + 3;