Hello all, i want to display an equilateral triangle.
I thought about it and tried all day but unfortunately didn't do it.
This is so for i've done.
Please let me know where i'm wrong in this loop.Code:for(int i=0; i<5; i++) { for(int j=5; j>i; j--) for(int k=0; k<i; k++) cout<<"*"; cout<<" "; cout<<"\n"; }
Thanks in advance..