I am done coding the first triangle but my problem is the second one. I need to make it using only 2 Loops (Nested Loops)
Below is my Code for the First One :
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream.h>
#include <conio.h>
main()
{
int x,y;
for (x=5;x>=1;x--){
for (y=1;y<=x;y++){
cout<<"*";
}
cout<<endl;
}
getch();
}
Can you help me for the other one? Thank you in Advance =)