You might want to tidy your switch up a bit like this:



while (ProductNumber != 0 )
{
float sumVal = 0;

switch (ProductNumber)
{