problem about Loops

can anyone give me sample on how to loop certain function. Like 6 times.

I know its a silly question but I need it for a bigger project. I don't understand forloopiteration and kinda unapplicable on my project so I'm asking simple code sample if possible thanks.

There are for-loops and while-loops. To do something 6 times, a for-loop is used.
for ( start-statement ; condition ; repeated-statement )
For example an integer ‘i’ that counts from 0 up to 5.

int i;
for ( i=0; i<6; i++)
{
  Blink-A-Led();
}

The “i++” means to increment ‘i’. It is the same as i = i + 1 ;
The example above can be made smaller by declaring ‘i’ inside it.

for ( int i = 0; i<6; i++)
{
  Blink-A-Led();
}

thanks mate. . I'll post further updates on my problem, thanks for the quick reply.