Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int i1, i2;
- const int ROWS = 10;
- i1=ROWS, i2=1;
- for (i1=ROWS; i1>=1; --i1) //second triangle
- {
- for (i2=1; i2<=(ROWS-i1); ++i2)
- {
- cout << "*";
- }
- for (i2=1; i2<=i1; ++i2)
- {
- cout << "c";
- }
- cout << "x" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement