You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Christopher Fremond 76acd9d72b
Update README.md
3 years ago
..
README.md Update README.md 3 years ago

README.md

displayz

Instructions

Write a program that takes a string, and displays the first z character it encounters in it, followed by a newline ('\n'). If there are no z characters in the string, the program just writes z followed by a newline ('\n'). If the number of arguments is not 1, the program displays a z followed by a newline ('\n').

Usage

$ go run . "xyz"
z
$ go run . "bcvbvZ"
z
$ go run . "nbv"
z
$