Challenge: Comments in Go
Свайпніть щоб показати меню
Task
Comment out the statement that should be shown and uncomment the statement that needs to be shown in the following code.
index.go
1234567package main import "fmt" func main() { fmt.Println("This sentence should not be outputted") //fmt.Println("This sentence should be outputted") }
- Use
//to comment out a line in Go. - You need to hide the first print statement.
- Then remove
//from the second one to display it.
package main
import "fmt"
func main() {
//fmt.Println("This sentence should not be outputted")
fmt.Println("This sentence should be outputted")
}
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 8
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Секція 1. Розділ 8