This commit is contained in:
Unknown
2013-06-22 21:29:42 +08:00
parent fac2467441
commit 67be80ca8c
120 changed files with 506 additions and 7307 deletions

View File

@@ -0,0 +1,17 @@
package main
func main() {
// 1 - use 2 nested for loops
for i:=1; i <= 25; i++ {
for j:=1; j <=i; j++ {
print("G")
}
println()
}
// 2 - use only one for loop and string concatenation
str := "G"
for i:=1; i <= 25; i++ {
println(str)
str += "G"
}
}