Files
learngo/06-variables/02-declarations/exercises/11-wrong-doer/main.go

28 lines
581 B
Go

// For more tutorials: https://blog.learngoprogramming.com
//
// Copyright © 2018 Inanc Gumus
// Learn Go Programming Course
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
//
package main
// ---------------------------------------------------------
// EXERCISE: Wrong doer
//
// 1. Print a variable
//
// 2. Then declare it
// (This means: Try to print it before its declaration)
//
// 3. Observe the error
// ---------------------------------------------------------
func main() {
// First print it:
// fmt.Println(?)
// Then declare it:
// var ? ?
}