package main import ( "bufio" "fmt" "os" "strconv" "strings" ) func main() { reader := bufio.NewReader(os.Stdin) fmt.Print("First number: ") text, _ := reader.ReadString('\n') a, _ := strconv.Atoi(strings.TrimSpace(text)) fmt.Print("Second number: ") text, _ = reader.ReadString('\n') b, _ := strconv.Atoi(strings.TrimSpace(text)) c := a + b fmt.Printf("%d + %d = %d\n", a, b, c) }