Answers for "is there is while and do while loop in go"

Go
0

while in golang

package main

import "fmt"

func main() {
	sum := 1
	for sum < 10 {
	 fmt.Println(sum)
	 sum++
	}	
}
Posted by: Guest on April-17-2021

Code answers related to "is there is while and do while loop in go"

Browse Popular Code Answers by Language