+ 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

24th Oct 2019, 4:56 PM
Immanuel Immanuel
Immanuel Immanuel - avatar
10 Antworten
+ 3
Try to do by yourself first and show your attempt.
24th Oct 2019, 9:56 PM
A͢J
A͢J - avatar
+ 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; }
25th Oct 2019, 4:51 AM
Stephen Matthew
Stephen Matthew - avatar
+ 2
Immanuel Immanuel You can make right angle triangle like this. https://code.sololearn.com/cAmBiOKNm8he/?ref=app
25th Oct 2019, 7:23 AM
A͢J
A͢J - avatar
+ 1
Immanuel Immanuel This type of emoji not allow here I think. And remove duplicate reply.
25th Oct 2019, 7:04 AM
A͢J
A͢J - avatar
0
You are right sir
24th Oct 2019, 10:01 PM
Immanuel Immanuel
Immanuel Immanuel - avatar
0
Sort of this
24th Oct 2019, 10:02 PM
Immanuel Immanuel
Immanuel Immanuel - avatar
0
Like creating this using 'for' loop conditions.... How https://code.sololearn.com/cxGV4XOPK7vg/?ref=app
25th Oct 2019, 3:56 AM
Immanuel Immanuel
Immanuel Immanuel - avatar
0
Boss you did it.... 😘😘
25th Oct 2019, 7:00 AM
Immanuel Immanuel
Immanuel Immanuel - avatar
0
Boss you did it.... 😘😘
25th Oct 2019, 7:00 AM
Immanuel Immanuel
Immanuel Immanuel - avatar
0
Just as expected.... I love you dearly
25th Oct 2019, 7:31 AM
Immanuel Immanuel
Immanuel Immanuel - avatar