Update Program 3.cpp