윤준석

ADD: implements echo program

Showing 1 changed file with 18 additions and 0 deletions
1 +package main
2 +
3 +import (
4 + "bufio"
5 + "fmt"
6 + "os"
7 +)
8 +
9 +func main() {
10 + var input string
11 + sc := bufio.NewScanner(os.Stdin)
12 + for {
13 + fmt.Print("input: ")
14 + sc.Scan()
15 + input = sc.Text()
16 + fmt.Printf("output: %s\n", input)
17 + }
18 +}
...\ No newline at end of file ...\ No newline at end of file