public/subjects/printreversealphabetalt2
xpetit 46f4ddc49e
Simplify prompt, execution of Go programs, fix typos
2021-04-28 11:47:34 +02:00
..
README.md Simplify prompt, execution of Go programs, fix typos 2021-04-28 11:47:34 +02:00

README.md

printreversealphabetalt2

Instructions

Write a program that:

  • first prints the Latin alphabet alternatively in uppercase and lowercase in reverse order (from 'Z' to 'a') on a single line.
  • second prints the Latin alphabet alternatively in uppercase and lowercase in order (from 'A' to 'z') on a single line.

A line is a sequence of characters preceding the end of line character ('\n').

Please note that casting is not allowed for this exercise!

Usage

$ go run .
ZyXwVuTsRqPoNmLkJiHgFeDcBa
AbCdEfGhIjKlMnOpQrStUvWxYz
$