forked from root/public
Browse Source
- created branch to fix old PR that had too many conflictsDEV-4017-prototypes-exercise-1-animals
![jose@01talent.com](/git/assets/img/avatar_default.png)
![José Rosendo](/git/assets/img/avatar_default.png)
1 changed files with 21 additions and 0 deletions
@ -0,0 +1,21 @@ |
|||||||
|
## 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 the `string`, 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 |
||||||
|
|
||||||
|
```console |
||||||
|
$ 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 |
||||||
|
$ |
||||||
|
``` |
Loading…
Reference in new issue