+ 1
How do I draw a right angled triangle using the 'for ' loop command in C++ with an increment of 1 'X' for 7 lines
Programming
10 Antworten
+ 3
Try to do by yourself first and show your attempt.
+ 3
Make an array.
string _array[] = {"x" , "x x", "x x", "x x", "xxxxx"};
then loop through it.
for(int x = 0; x <= 4; x++)
{
cout << _array[x] << endl;
}
+ 2
Immanuel Immanuel You can make right angle triangle like this.
https://code.sololearn.com/cAmBiOKNm8he/?ref=app
+ 1
Immanuel Immanuel This type of emoji not allow here I think. And remove duplicate reply.
0
You are right sir
0
Sort of this
0
Like creating this using 'for' loop conditions.... How
https://code.sololearn.com/cxGV4XOPK7vg/?ref=app
0
Boss you did it.... 😘😘
0
Boss you did it.... 😘😘
0
Just as expected....
I love you dearly