The program gives gives me this output:

* * * * *

* * * *

* * *

* *

*

Can anyone tell me PLEASE how to, instead, get the blank spaces first instead at the end. In other words, the second line would have 1 blank space followed by 4 stars, third line would have 2 blank spaces followed by 3 stars, and so on. So that the vertical line (with 5 stars) appears at the end rather than at the beginning.

I will really appreciate it a lot. Thanks a million in advance.

Arooj

void main()

{

clrscr();

for (int i = 1; i <= 5; i++) {

for (int j = 5; j >= i; j--)

cout << " *" ;

cout << endl;

}

getch();

}