fork download
  1. #include <iostream>
  2. #include<cstdlib>
  3. using namespace std;
  4.  
  5. int main() {
  6. for(int a=0; a<20;a++){
  7. for (int c=(20-a)/2;c>=0;c--)
  8. {cout<<" ";
  9. }
  10. for(int b=0;b<=a;b++)
  11. {
  12. cout<"*";
  13. }
  14. cout<<endl;
  15. }
  16. system("pause");
  17. return 0;
  18. }
Success #stdin #stdout #stderr 0s 3340KB
stdin
Standard input is empty
stdout
           
          
          
         
         
        
        
       
       
      
      
     
     
    
    
   
   
  
  
 
stderr
sh: pause: not found