Update Program 2.cpp