Printing Using For Each Loop In Cpp