Try using nested for loops: the outer loop will loop 20 times; the inner loop will loop 5 times.