Where
I tried a third loop it printed it wrong.
Like this:
Qt Code:
for(t=1;t<12;t++) { for(j=1;j<=t;++j) cout<< " "; for(n=12;n>t;--n) cout << "*"; cout <<endl; } cout<<endl;To copy to clipboard, switch view to plain text mode
Where
I tried a third loop it printed it wrong.
Like this:
Qt Code:
for(t=1;t<12;t++) { for(j=1;j<=t;++j) cout<< " "; for(n=12;n>t;--n) cout << "*"; cout <<endl; } cout<<endl;To copy to clipboard, switch view to plain text mode
Bookmarks