wcypierre

tbd triangle

Oct 28th, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include<iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int inner_loop, outer_loop;
  8.  
  9.     for(outer_loop = 5; outer_loop >= 1;outer_loop--)
  10.     {
  11.         for(inner_loop = 0; inner_loop < i; inner_loop++)
  12.         {
  13.             cout << "*";
  14.         }
  15.         cout << endl;
  16.     }
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment