while in golang code example
Example: while in golang
package main
import "fmt"
func main() {
sum := 1
for sum < 10 {
fmt.Println(sum)
sum++
}
}
package main
import "fmt"
func main() {
sum := 1
for sum < 10 {
fmt.Println(sum)
sum++
}
}