Back To C++ Loops Index
First variable is is initialized to 0, and condition is checked (i<10)
if(i<=10) condition is true statements in the loop are executed and i is incremented by 1
when i becomes (i>10) loop is ended
//program to demonstrate for statement to display numbers from 0 to 10 #include
#include
void main() { int i; clrscr(); for(i=0;i<=10;i++) { cout<