Creating For Loop C++: A Basic Code Example