mirror of https://github.com/01-edu/public.git
Browse Source
The goal: printing the alphabet alternatively in lowercase and in uppercase from a to Z, and then from z to A.pull/686/head
3 changed files with 37 additions and 0 deletions
@ -0,0 +1,8 @@
|
||||
package main |
||||
|
||||
import "fmt" |
||||
|
||||
func main() { |
||||
fmt.Println("aBcDeFgHiJkLmNoPqRsTuVwXyZ") |
||||
fmt.Println("zYxWvUtSrQpOnMlKjIhGfEdCbA") |
||||
} |
@ -0,0 +1,9 @@
|
||||
package main |
||||
|
||||
import ( |
||||
"lib" |
||||
) |
||||
|
||||
func main() { |
||||
lib.ChallengeMain("printalphabetalt") |
||||
} |
@ -0,0 +1,20 @@
|
||||
## printalphabetalt |
||||
|
||||
### Instructions |
||||
|
||||
Write a program that: |
||||
|
||||
- first prints the Latin alphabet alternatively in lowercase and uppercase in order (from `'a'` to `'Z'`) on a single line. |
||||
- second prints the Latin alphabet alternatively in lowercase and uppercase in reverse order (from `'z'` 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'`). |
||||
|
||||
### Usage |
||||
|
||||
```console |
||||
student@ubuntu:~/[[ROOT]]/printalphabetalt$ go build |
||||
student@ubuntu:~/[[ROOT]]/printalphabetalt$ ./printalphabetalt |
||||
aBcDeFgHiJkLmNoPqRsTuVwXyZ |
||||
zYxWvUtSrQpOnMlKjIhGfEdCbA |
||||
student@ubuntu:~/[[ROOT]]/printalphabetalt$ |
||||
``` |
Loading…
Reference in new issue