Answer the question
In order to leave comments, you need to log in
Why is there an error in the output (golang)?
Wrote this code:
package main
import (
"fmt"
)
func main () {
x := 123
fmt.Printf ("Hello %v", x)
}
> Hello 123%
Answer the question
In order to leave comments, you need to log in
It doesn't output %
% - it's most likely that yours already outputs it.
Add the newline code "\n" to the end like this fmt.Printf ("Hello %v\n", x)
and it will be what you want
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question