Run function X times

Hi!
I know this is a stupid question, but how to you run a function X times.

instead of:

test();
test();
test();
test();
test();
delay(1000);
test2();
test2();
test2();
test2();
test2();

I want to write a number, and run test(); five times, and test2(); five times.

Thanks!

Google for loop

for(int i=0; i<5; i++)
  test();
delay(1000:
for(int i=0; i<5; i++)
  test2();

thanks a lot!