prog_3.cpp introducing range for

introduced range for