YaK:: Beginners in Golang | [Changes] [Calendar] [Search] [Index] [PhotoTags] |
1. Hello world.
2. echo.go -- print your arguments.
2a. import "os" and "fmt"
2b. import "flag" and use flag.Arg(int) (hint you must call flag.Parse())
2c. import "bufio" and use NewWriter(os.Stdout)
3. Print the average of the command line arguments, which are floating point numbers.
3b. import "math/big" and use big.Int
(last modified 2018-08-11) [Login] |