Browse Source

Adding of a new exercise printalphabetg.

The goal: printing the alphabet in lowercase from a to g.
content-update
Christopher Fremond 4 years ago committed by xpetit
parent
commit
bcd0daa637
  1. 7
      go/tests/prog/printalphabetg_prog/main.go
  2. 9
      go/tests/prog/printalphabetg_test/main.go
  3. 16
      subjects/printalphabetg/README.md

7
go/tests/prog/printalphabetg_prog/main.go

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("abcdefg")
}

9
go/tests/prog/printalphabetg_test/main.go

@ -0,0 +1,9 @@
package main
import (
"lib"
)
func main() {
lib.ChallengeMain("printalphabetg")
}

16
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$
```
Loading…
Cancel
Save