finish main3_13.cpp