mirror of https://github.com/01-edu/public.git
Browse Source
The goal: printing the alphabet alternatively with the last and first letter first and so on. zaybxc etc...pull/686/head
3 changed files with 34 additions and 0 deletions
@ -0,0 +1,7 @@ |
|||||||
|
package main |
||||||
|
|
||||||
|
import "fmt" |
||||||
|
|
||||||
|
func main() { |
||||||
|
fmt.Println("zaybxcwdveuftgshriqjpkolnm") |
||||||
|
} |
@ -0,0 +1,9 @@ |
|||||||
|
package main |
||||||
|
|
||||||
|
import ( |
||||||
|
"lib" |
||||||
|
) |
||||||
|
|
||||||
|
func main() { |
||||||
|
lib.ChallengeMain("printalt2") |
||||||
|
} |
@ -0,0 +1,18 @@ |
|||||||
|
## printalt2 |
||||||
|
|
||||||
|
### Instructions |
||||||
|
|
||||||
|
Write a program that prints the Latin alphabet in lowercase alternatively with the last and first letters, then with the second to last and second letters, and so on until all the alphabet letters are displayed 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]]/printalt2$ go build |
||||||
|
student@ubuntu:~/[[ROOT]]/printalt2$ ./printalt2 |
||||||
|
zaybxcwdveuftgshriqjpkolnm |
||||||
|
student@ubuntu:~/[[ROOT]]/printalt2$ |
||||||
|
``` |
Loading…
Reference in new issue