Sobes.tech
Junior — Senior

What output will the console display when running program №17

livecode

Task condition

Determine what will be printed to the console after running the following Go program:

import (
        "fmt"
        )
func main() {
    num:=0
    defer fmt.Println(num)
    defer func(){
        num++
        fmt.Println(num)        
    }()
}