For Loop in C++

By: Prof. Dr. Fazal Rehman | Last updated: March 3, 2022

For Loop in C++

For loop have three parts;

for (i= 1; i <= n; ++i)

loop initialization: e.g i=1;

loop condition: e.g i<=n;

loop increment/decrement: e.g i++;

Example of For loop

 

Leave a Comment

All Copyrights Reserved 2025 Reserved by T4Tutorials