diff options
| author | Abigail <abigail@abigail.be> | 2021-03-15 17:10:38 +0100 |
|---|---|---|
| committer | Abigail <abigail@abigail.be> | 2021-03-15 20:21:49 +0100 |
| commit | ce73b149923a3f69f2af1dfe4d210f64c67a2acd (patch) | |
| tree | fd8be0e1a767a6e4412cb926a239ecc918d83c6c /challenge-104 | |
| parent | a25700559b1eec24b8b2060d2b7c1c42b98cc6f8 (diff) | |
| download | perlweeklychallenge-club-ce73b149923a3f69f2af1dfe4d210f64c67a2acd.tar.gz perlweeklychallenge-club-ce73b149923a3f69f2af1dfe4d210f64c67a2acd.tar.bz2 perlweeklychallenge-club-ce73b149923a3f69f2af1dfe4d210f64c67a2acd.zip | |
Go solution for week 104, part 1
Diffstat (limited to 'challenge-104')
| -rw-r--r-- | challenge-104/abigail/README.md | 1 | ||||
| -rw-r--r-- | challenge-104/abigail/go/ch-1.go | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/challenge-104/abigail/README.md b/challenge-104/abigail/README.md index cd806d9580..be78ee76e2 100644 --- a/challenge-104/abigail/README.md +++ b/challenge-104/abigail/README.md @@ -29,6 +29,7 @@ even handle a single if statement. A single print statement is enough. * [Cobol](cobol/ch-1.cb) * [Forth](forth/ch-1.fs) * [Fortran](fortran/ch-1.f90) +* [Go](go/ch-1.go) * [Lua](lua/ch-1.lua) * [Node.js](node/ch-1.js) * [Perl](perl/ch-1.pl) diff --git a/challenge-104/abigail/go/ch-1.go b/challenge-104/abigail/go/ch-1.go new file mode 100644 index 0000000000..ef5d6fb291 --- /dev/null +++ b/challenge-104/abigail/go/ch-1.go @@ -0,0 +1,16 @@ +package main + +// +// See ../README.md +// + +// +// Run as: go run ch-1.go +// + +import "fmt" + +func main () { + fmt . Print ("0 1 1 2 1 3 2 3 1 4 3 5 2 5 3 4 1 5 4 7 3 8 5 7 2 7 ") + fmt . Print ("5 8 3 7 4 5 1 6 5 9 4 11 7 10 3 11 8 13 5 12 7 9 2 9\n") +} |
