C++ For Loop
The Syntax of for loop is as follows:
for (initialization; condition; update) {
// loop statement
}
Example :
Output :