solved ex1.1

This commit is contained in:
Stephen McQuay 2016-07-27 21:34:16 -07:00
parent 7cc6a2956e
commit c8f07674f8
No known key found for this signature in database
GPG Key ID: 1ABF428F71BAFC3D
1 changed files with 16 additions and 0 deletions

16
ch1/ex1.1/main.go Normal file
View File

@ -0,0 +1,16 @@
// e1.1 solves Exercise 1.1
package main
import (
"fmt"
"os"
)
func main() {
s, sep := "", ""
for _, arg := range os.Args {
s += sep + arg
sep = " "
}
fmt.Println(s)
}