You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
// for i := 1; i < 10; i++ {
|
|
// if i%2 == 0 {
|
|
// fmt.Printf(" 偶数-%d", i)
|
|
// continue
|
|
// }
|
|
// fmt.Printf(" %d", i)
|
|
// }
|
|
|
|
i := 0
|
|
for ;i <= 10; { // initialisation and post are omitted
|
|
fmt.Printf("%d ", i)
|
|
i += 2
|
|
}
|
|
}
|