OK you asked program to do that. I made you one. This will indeed compile and work as you want it to do, but your teacher will kill you if you use it as homework. XD
EDIT: I think what Syuf wrote will work better than mine.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <iostream>
usingnamespace std;
int a = 0; //Global variables FTW
int i;
int main(void)
{
for(i=0; i<16; i++){
cout << "*";
a++;
if(a==5 || a==9 || a==12 || a==14 || a==15) //ROFL
cout << endl;
}
}