loop on two variables



examples/loop-on-two/loop_on_two.go
package main

import (
    "fmt"
)

func main() {
    for i, j := 1, 5; i+j < 20; i, j = i+1, j+2 {
        fmt.Printf("%v  %v\n", i, j)
    }
}

examples/loop-on-two/loop_on_two.out
1  5
2  7
3  9
4  11
5  13