12 lines
114 B
Go
12 lines
114 B
Go
package datour
|
|
|
|
import "fmt"
|
|
|
|
func For() {
|
|
sum := 0
|
|
for i := 0; i < 10; i++ {
|
|
sum += i
|
|
}
|
|
fmt.Println(sum)
|
|
}
|