Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ program for loop example


int i,j;

for(i=1;i<5;i++)  //outer loop 
{
cout<<"Loop iteration:"<<i<<endl;  // outer loop 
for(j=1;j<5;j++) //inner loop 
{cout<<"Inner loop iteration:"<<j<<endl;}  //inner loop 
}   


return 0;
}
Source by discord.com #
 
PREVIOUS NEXT
Tagged: #program #loop
ADD COMMENT
Topic
Name
7+6 =