From 763216e2b06f694cbd66a1b66e249100904356f1 Mon Sep 17 00:00:00 2001 From: MSilva95 Date: Mon, 21 Oct 2019 17:41:29 +0100 Subject: [PATCH] readme for new exercice of quest05 alphacount --- subjects/alphacount.en.md | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 subjects/alphacount.en.md diff --git a/subjects/alphacount.en.md b/subjects/alphacount.en.md new file mode 100644 index 000000000..3bcd04cf8 --- /dev/null +++ b/subjects/alphacount.en.md @@ -0,0 +1,42 @@ +## alphacount + +### Instructions + +Write a function that counts only the letters of a `string` and that returns that count. +White spaces or any other characters should not be counted. + +### Expected function + +```go +func AlphaCount(str string) int { + +} +``` + +### Usage + +Here is a possible [program](TODO-LINK) to test your function : + +```go +package main + +import ( + "fmt" + piscine ".." +) + +func main() { + str := "Hello 78 World! 4455 /" + nb := piscine.AlphaCount(str) + fmt.Println(nb) +} +``` + +And its output : + +```console +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./test +10 +student@ubuntu:~/piscine-go/test$ +```