while (x <= 8 && x >= -8)
if (x <= -8)
{
y = -3;
}
if ((x > -8) && (x <= -3))
{
y = (3 * (x + 8) / 2) - 3;
}
if ((x > -3) && (x <= 3))
{
y = (Math.Sqrt(9 - Math.Pow(x, 2)));
}
if ((x > 3) && (x <= 5))
{
y = x - 3;
}
if ((x > 5) && (x <= 8))
{
y = 3;
}
x += 2;