fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. cout<<" * "<<endl;
  6. cout<<" *** "<<endl;
  7. cout<<" ***** "<<endl;
  8. cout<<" ******* "<<endl;
  9. cout<<" * "<<endl;
  10. cout<<" *** "<<endl;
  11. cout<<" ***** "<<endl;
  12. cout<<" ******* "<<endl;
  13. cout<<"*********"<<endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
    *    
   ***  
  *****  
 ******* 
    *    
   ***  
  *****  
 ******* 
*********