refactor: 6th section first two lectures exercises and questions
This commit is contained in:
35
06-variables/02-declarations/exercises/08-multiple-2/main.go
Normal file
35
06-variables/02-declarations/exercises/08-multiple-2/main.go
Normal file
@ -0,0 +1,35 @@
|
||||
// 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: Multiple #2
|
||||
//
|
||||
// 1. Declare and initialize two string variables
|
||||
// using multiple variable declaration
|
||||
//
|
||||
// 2. Use the type once while declaring the variables
|
||||
//
|
||||
// 3. The first variable's name should be firstName
|
||||
// 4. The second variable's name should be lastName
|
||||
//
|
||||
// 5. Print them all
|
||||
//
|
||||
// EXPECTED OUTPUT
|
||||
// "" ""
|
||||
// ---------------------------------------------------------
|
||||
|
||||
func main() {
|
||||
// ADD YOUR DECLARATION HERE
|
||||
//
|
||||
|
||||
// REPLACE THE QUESTION-MARKS BELOW
|
||||
// WITH THE NAME OF YOUR VARIABLES
|
||||
|
||||
// fmt.Printf("%q %q\n", ?, ?)
|
||||
}
|
Reference in New Issue
Block a user