For Loops
The C# for loop is based on the C for loop, so it is no surprise that its syntax is the same. Again, you think and use this the same as you did in C#. That is why it is so important to focus on the concepts and ideas that underlie the code.
Here is our example for loop from C#, translated to C/C++.