Yes, but you won't receive any output. You haven't specified a set of branch evaluations that actually lead to any useful processing or output, so it performs no tasks when run.
Look at your branch statements. You have this:
Code:
if (salesTotal < 10000) // this is true
{
if (salesClass == 1) // this is false
{
}
// you are here.
}
else if (salesClass == 2) // will never get here.
{
// output
}
Look at where you are there. Since there is no satisfied condition it abandons the inner branch and returns to the outer branch. The outer branch provides no else, so it has no condition to satisfy and continues processing. There is no following instruction.
The only way you will ever get output in this is if salesClass is set to 2.