added listing 6.3 - ifelseif.cpp