0
Bug
package main import "fmt" func main() { fmt.Println("Go /n Go /n GO") } How do I print Go vertically ? Go Go Go Someone help me out ?
3 Respostas
+ 1
package main
import "fmt"
func main() {
fmt.Println("Go Go GO")
fmt.Println("Go\nGo\nGo")
}
+ 3
You should use back slashes for new lines like :
"\n"
Also don't add spaces after new line, or your text will be shifted.
Heres a fixed version of your code:
https://code.sololearn.com/cqWu2Q4dUILw/?ref=app
+ 1
Aleksei Radchenkov Thanks alot