29 lines
517 B
Go
29 lines
517 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
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func main() {
|
||
|
jake := "jake"
|
||
|
joe := "joe"
|
||
|
lee := "lee"
|
||
|
lina := "lina"
|
||
|
|
||
|
fmt.Println(jake)
|
||
|
fmt.Println(joe)
|
||
|
fmt.Println(lee)
|
||
|
fmt.Println(lina)
|
||
|
|
||
|
// for each name
|
||
|
// you need to declare a variable
|
||
|
// and then you need to print it
|
||
|
//
|
||
|
// but by using an array, you don't need to do that
|
||
|
}
|