Initial commit
This commit is contained in:
24
06-variables/02-declarations/exercises/11/main.go
Normal file
24
06-variables/02-declarations/exercises/11/main.go
Normal file
@ -0,0 +1,24 @@
|
||||
// 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
|
||||
// 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 ? ?
|
||||
}
|
Reference in New Issue
Block a user