1
0
mirror of https://github.com/MADTeacher/go_basics.git synced 2025-11-23 21:34:47 +02:00
Files
go_basics/part_1/1.11/2.go
2025-05-28 14:52:05 +03:00

20 lines
175 B
Go

package main
import (
"fmt"
"strconv"
)
func main() {
str := ""
i := 0
for {
str += strconv.Itoa(i)
if i >= 5 {
break
}
i++
}
fmt.Println(str) // 012345
}