solved ex1.1
This commit is contained in:
parent
7cc6a2956e
commit
c8f07674f8
|
@ -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)
|
||||||
|
}
|
Loading…
Reference in New Issue