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.
22 lines
849 B
22 lines
849 B
6 years ago
|
## reversestrcap
|
||
|
|
||
|
### Instructions
|
||
|
|
||
5 years ago
|
Write a program that takes one or more arguments and that, for each argument, puts the last letter of each word in uppercase and the rest in lowercase. It displays the result followed by a newline (`'\n'`).
|
||
6 years ago
|
|
||
5 years ago
|
If there are no argument, the program displays nothing.
|
||
6 years ago
|
|
||
5 years ago
|
### Usage
|
||
6 years ago
|
|
||
|
```console
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/reversestrcap$ go build
|
||
|
student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e
|
||
6 years ago
|
firsT smalL tesT$
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e
|
||
6 years ago
|
seconD tesT iS A littlE easieR$
|
||
|
bewarE it'S noT harD wheN $
|
||
|
gO A dernieR 0123456789 foR thE roaD E$
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/reversestrcap$ ./reversestrcap
|
||
5 years ago
|
student@ubuntu:~/[[ROOT]]/reversestrcap$
|
||
6 years ago
|
```
|