fork download
  1. package main
  2. import "fmt"
  3. func main(){
  4. var n int
  5. fmt.Scanf("%d",&n)
  6. for n!=42 {
  7. fmt.Printf("%d\n",n)
  8. fmt.Scanf("%d",&n)
  9. }
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1
2
10
42
11
compilation info
prog.go:10: missing newline at end of file
stdout
Standard output is empty