public/subjects/printrot
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

printrot

Instructions

Write a program that takes a lower case letter and goes around in order to display the whole alphabet starting from this letter on a single line.

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

If the input is invalid the program prints a newline ('\n').

Usage

$ go run . "abc"

$ go run . "a"
abcdefghijklmnopqrstuvwxyz
$ go run . "g"
ghijklmnopqrstuvwxyzabcdef
$ go run . "a" "a"

$ go run . "A"

$