From bcd0daa63707b457eedfd0405aba85223b3b2d60 Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Fri, 6 Nov 2020 02:45:42 +0000 Subject: [PATCH] Adding of a new exercise printalphabetg. The goal: printing the alphabet in lowercase from a to g. --- go/tests/prog/printalphabetg_prog/main.go | 7 +++++++ go/tests/prog/printalphabetg_test/main.go | 9 +++++++++ subjects/printalphabetg/README.md | 16 ++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 go/tests/prog/printalphabetg_prog/main.go create mode 100644 go/tests/prog/printalphabetg_test/main.go create mode 100644 subjects/printalphabetg/README.md diff --git a/go/tests/prog/printalphabetg_prog/main.go b/go/tests/prog/printalphabetg_prog/main.go new file mode 100644 index 00000000..9a0b4182 --- /dev/null +++ b/go/tests/prog/printalphabetg_prog/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("abcdefg") +} diff --git a/go/tests/prog/printalphabetg_test/main.go b/go/tests/prog/printalphabetg_test/main.go new file mode 100644 index 00000000..527b99b1 --- /dev/null +++ b/go/tests/prog/printalphabetg_test/main.go @@ -0,0 +1,9 @@ +package main + +import ( + "lib" +) + +func main() { + lib.ChallengeMain("printalphabetg") +} diff --git a/subjects/printalphabetg/README.md b/subjects/printalphabetg/README.md new file mode 100644 index 00000000..9b622d22 --- /dev/null +++ b/subjects/printalphabetg/README.md @@ -0,0 +1,16 @@ +## printalphabetg + +### Instructions + +Write a program that prints the Latin alphabet until the letter g (included) in lowercase on a single line. + +A line is a sequence of characters preceding the [end of line](https://en.wikipedia.org/wiki/Newline) character (`'\n'`). + +### Usage + +```console +student@ubuntu:~/[[ROOT]]/printalphabetg$ go build +student@ubuntu:~/[[ROOT]]/printalphabetg$ ./printalphabetg +abcdefg +student@ubuntu:~/[[ROOT]]/printalphabetg$ +```