Skip to main content
remove inner loop
Source Link

Go, 11984 characters

package main;import"fmt";func main(){for j:=0;j<10;j++{fmt.Print();for i:=0;i<10;i++{fmt.Print("*");};fmt.Println("**********");}}

Sample run:

bash$ go build && ./golf
**********
**********
**********
**********
**********
**********
**********
**********
**********
**********

Go, 119 characters

package main;import"fmt";func main(){for j:=0;j<10;j++{fmt.Print();for i:=0;i<10;i++{fmt.Print("*");};fmt.Println();}}

Sample run:

bash$ go build && ./golf
**********
**********
**********
**********
**********
**********
**********
**********
**********
**********

Go, 84 characters

package main;import"fmt";func main(){for j:=0;j<10;j++{fmt.Println("**********");}}

Sample run:

bash$ go build && ./golf
**********
**********
**********
**********
**********
**********
**********
**********
**********
**********
Source Link

Go, 119 characters

package main;import"fmt";func main(){for j:=0;j<10;j++{fmt.Print();for i:=0;i<10;i++{fmt.Print("*");};fmt.Println();}}

Sample run:

bash$ go build && ./golf
**********
**********
**********
**********
**********
**********
**********
**********
**********
**********