[IMG]http://img.villagephotos.com/p/2004-8/807060/resultwanted.JPG[/IMG]
the picture shows the result i wanna achieve but my program here which i modified:
#include <iostream>
using namespace std;
int main()
{
int k, m;
for(k = 1; k <= 10; k++)
{
for(m = 0; m < k; m++)
cout << "*";
cout << endl;
}
cin.get();
return 0;
} ( copyrights JASWEB)
I AM ONLY ABLE TO ALIGN THE TRIANGLES VERTICALLY AND NOT HORIZONTALLY :confused: ----->AS IN THE PHOTO
my result is SOME WHAT like this :o
****
***
**
*
*
**
***
****
****
***
**
*