lecture 65

This commit is contained in:
2023-11-07 13:41:02 +01:00
parent ffb74ec6b0
commit e8da61d1ee
2 changed files with 51 additions and 3 deletions

View File

@@ -2,13 +2,18 @@ package main
import "fmt"
func main () {
func main() {
i := 0
loop:
if i < 5{
if i < 5 {
fmt.Println(i)
i++
goto loop
}
}
// THIS IS AN ERROR
// goto todo
// x := 5
// todo:
// fmt.Println("something here")
}