Update C++ Program 2.cpp