Skip to main content
added 19 characters in body
Source Link
Peter Taylor
  • 43.1k
  • 4
  • 70
  • 169

GolfScript (4343 42 chars)

' /\ /__\ '4/){.+\.{2$[2$.@\++]*}%\{.+}%+\}3*;n*

Output:

               /\               
              /__\              
             /\  /\             
            /__\/__\            
           /\      /\           
          /__\    /__\          
         /\  /\  /\  /\         
        /__\/__\/__\/__\        
       /\              /\       
      /__\            /__\      
     /\  /\          /\  /\     
    /__\/__\        /__\/__\    
   /\      /\      /\      /\   
  /__\    /__\    /__\    /__\  
 /\  /\  /\  /\  /\  /\  /\  /\ 
/__\/__\/__\/__\/__\/__\/__\/__\

Change the "3" to a larger number for a larger triangle.

GolfScript (43 chars)

' /\ /__\ '4/){.+\.{2$.@\++}%\{.+}%+\}3*;n*

Output:

               /\               
              /__\              
             /\  /\             
            /__\/__\            
           /\      /\           
          /__\    /__\          
         /\  /\  /\  /\         
        /__\/__\/__\/__\        
       /\              /\       
      /__\            /__\      
     /\  /\          /\  /\     
    /__\/__\        /__\/__\    
   /\      /\      /\      /\   
  /__\    /__\    /__\    /__\  
 /\  /\  /\  /\  /\  /\  /\  /\ 
/__\/__\/__\/__\/__\/__\/__\/__\

Change the "3" to a larger number for a larger triangle.

GolfScript (43 42 chars)

' /\ /__\ '4/){.+\.{[2$.]*}%\{.+}%+\}3*;n*

Output:

               /\               
              /__\              
             /\  /\             
            /__\/__\            
           /\      /\           
          /__\    /__\          
         /\  /\  /\  /\         
        /__\/__\/__\/__\        
       /\              /\       
      /__\            /__\      
     /\  /\          /\  /\     
    /__\/__\        /__\/__\    
   /\      /\      /\      /\   
  /__\    /__\    /__\    /__\  
 /\  /\  /\  /\  /\  /\  /\  /\ 
/__\/__\/__\/__\/__\/__\/__\/__\

Change the "3" to a larger number for a larger triangle.

Source Link
Peter Taylor
  • 43.1k
  • 4
  • 70
  • 169

GolfScript (43 chars)

' /\ /__\ '4/){.+\.{2$.@\++}%\{.+}%+\}3*;n*

Output:

               /\               
              /__\              
             /\  /\             
            /__\/__\            
           /\      /\           
          /__\    /__\          
         /\  /\  /\  /\         
        /__\/__\/__\/__\        
       /\              /\       
      /__\            /__\      
     /\  /\          /\  /\     
    /__\/__\        /__\/__\    
   /\      /\      /\      /\   
  /__\    /__\    /__\    /__\  
 /\  /\  /\  /\  /\  /\  /\  /\ 
/__\/__\/__\/__\/__\/__\/__\/__\

Change the "3" to a larger number for a larger triangle.