ex10_25.cpp

added solution 10.25