Skip to content

Instantly share code, notes, and snippets.

@mukulrawat1986
Created October 2, 2015 12:07
Show Gist options
  • Save mukulrawat1986/46cb5a1054b3789175ce to your computer and use it in GitHub Desktop.
Save mukulrawat1986/46cb5a1054b3789175ce to your computer and use it in GitHub Desktop.
package main
import (
"bufio"
"fmt"
"os"
)
func main() {
var t int
for {
inp := bufio.NewReader(os.Stdin)
fmt.Scanln(&t, inp)
if t < 0 || t > 99 || t == 42 {
break
} else {
fmt.Printf("%d\n", t)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment