Update exercise1.21.cpp