You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What does 'go version' print?
go version go1.3 windows/amd64
What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.
1. run the following Go program:
package main
import (
"fmt"
)
func main() {
var n, m int
fmt.Scanf("%d%d", &n, &m);
fmt.Println(n, m);
}
with input:
1
2
(two numbers, with a newline in the middle)
What happened?
The program prints:
1 0
What should have happened instead?
1 2
Please provide any additional information below.
The text was updated successfully, but these errors were encountered:
by zr95.vip:
The text was updated successfully, but these errors were encountered: