Create for_loop.cpp

Sample code from Saylor foundation for homework assignment