Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

for loop in c++

for ( int i = 0; i < 5; i++)
{
  cout << "Hello" << endl;
}
// prints hello 5 times. 
 
PREVIOUS NEXT
Tagged: #loop
ADD COMMENT
Topic
Name
5+7 =