* * * * * * * * * *

* * * * * * * *

* * * * * *

* * * *

* *

*

n is where you input the number

for (a=2;a<=a+1;a++,n--)

{ for (b=n;b>0;b--?)

{gotoxy (b,a); cout<<"*";

}

}

getch();

}

* i have a little problem i don't know how to fix this and i really have a problem regarding using the nested for loop.. i know that you can help thank you

* the asterisk are not aligned by one another they descending forming a triangle upside down

This post has been edited by **jayman9**: 24 June 2008 - 08:28 AM