for( int row =1;row <= size; ++row )
{
for( int count=row;count<=size;++count)
{
cout << " ";
}
for(int col =1;col <=row;++col)
{
cout << " *";
}
cout << endl;
}
this is what I have so far, I cant find the logic in making his triangle hollow please need some guidance
.
This post has been edited by macosxnerd101: 20 November 2012 - 03:23 PM
Reason for edit:: Please use code tags

New Topic/Question
Reply



MultiQuote





|