- 3

Right Angled triangle using the 'for' loop ...

How do I let it repeat but in increasing X

24th Oct 2019, 10:04 PM
Immanuel Immanuel
Immanuel Immanuel - avatar
1 Answer
+ 8
You can try using for (int x=0; x<=4; x++){ for(int y=0; y<=x;y++){ cout<<"*"; if(y==x) cout<<endl; } }
29th Oct 2019, 7:19 AM
MCGAmedCoder gamerArtist
MCGAmedCoder gamerArtist - avatar