The book doesn't give very good homework to do so I thought I'd try to make a little Christ's tree with *'s but I'm just trying to spit out one side of that Christmas tree with a loop or two. I'm really not so smart and need some help

int main()
int i, j;
for(i=1; i<=5; i++)
for(j=1; j<=5-i; j++)
cout<<" ";
for(j=1; j<=i; j++)
cout<<j<<" ";
return 0;