fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main ()
  5. {
  6. const int ROWS = 10;
  7. for( int row = ROWS; row > 0; --row )
  8. {
  9. for( int column = 0; column < row; ++column )
  10. {
  11. std::cout << '*';
  12. }
  13. std::cout << std::endl;
  14. }
  15. }
Success #stdin #stdout 0s 3340KB
stdin
Standard input is empty
stdout
**********
*********
********
*******
******
*****
****
***
**
*