forked from root/public
3 changed files with 34 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||||||
|
package main |
||||||
|
|
||||||
|
import "fmt" |
||||||
|
|
||||||
|
func main() { |
||||||
|
fmt.Println("gfedcba") |
||||||
|
} |
@ -0,0 +1,9 @@ |
|||||||
|
package main |
||||||
|
|
||||||
|
import ( |
||||||
|
"lib" |
||||||
|
) |
||||||
|
|
||||||
|
func main() { |
||||||
|
lib.ChallengeMain("printreversealphabetg") |
||||||
|
} |
@ -0,0 +1,18 @@ |
|||||||
|
## printreversealphabetg |
||||||
|
|
||||||
|
### Instructions |
||||||
|
|
||||||
|
Write a program that prints the Latin alphabet in lowercase in reverse order (from `'g'` to `'a'`) on a single line. |
||||||
|
|
||||||
|
A line is a sequence of characters preceding the [end of line](https://en.wikipedia.org/wiki/Newline) character (`'\n'`). |
||||||
|
|
||||||
|
Please note that `casting` is not allowed for this exercise! |
||||||
|
|
||||||
|
### Usage |
||||||
|
|
||||||
|
```console |
||||||
|
student@ubuntu:~/[[ROOT]]/printreversealphabetg$ go build |
||||||
|
student@ubuntu:~/[[ROOT]]/printreversealphabetg$ ./printreversealphabetg |
||||||
|
gfedcba |
||||||
|
student@ubuntu:~/[[ROOT]]/printreversealphabetg$ |
||||||
|
``` |
Loading…
Reference in new issue