If you think about this for a couple minutes, the answer becomes clear. You want to do something 5 times, and then start over. If you forget about the starting over part, you want to do something 5 times. Since you know how many times the loop needs to loop, a for loop is the obvious choice. All you have to do is put that inside your while loop so that it starts over again.
There is no reason to increment the number like you do:
1 2 3 4
firstNum= firstNum+1;
firstNum++;
// is ==
firstNum = firstNum +2;