On Mon, Feb 19, 2018 at 11:11 AM, wrote:
> https://play.golang.org/p/Pvhg_npsg3Y
>
> (padded with spaces - press fmt for output)
>
>
> output :
>
> package main
>
>
> import "fmt"
>
>
> func main() {
>
> i, h, rs := 1, 1000, 160
>
>
> for y := i * (h / rs); y < (1+i)*(h/rs);
https://play.golang.org/p/Pvhg_npsg3Y
(padded with spaces - press fmt for output)
output :
package main
import "fmt"
func main() {
i, h, rs := 1, 1000, 160
for y := i * (h / rs); y < (1+i)*(h/rs); y++ {
fmt.Println(y)
}
}
note the extra