- 3
Right Angled triangle using the 'for' loop ...
How do I let it repeat but in increasing X
1 ответ
+ 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;
}
}
How do I let it repeat but in increasing X