mirror of https://github.com/01-edu/public.git
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.
jrosendo
08cedb74d3
|
2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago |
README.md
returna
Instructions
Write a program that takes a string
as an argument, if the string
contains the letter a
then print Contains the letter
followed by a newline \n
.
- If there is no character
a
in thestring
, the program writes!(Contains the letter)
followed by a newline\n
. - If the number of parameters is not 1, the program displays a newline
\n
.
Usage
$ go run . "do I exist" | cat -e
!(Contains the letter)$
$
$ go run . "I do exist a" | cat -e
Contains the letter$
$
$ go run . "one" "two" | cat -e
$