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.
xpetit
32eddefd09
|
4 years ago | |
---|---|---|
.. | ||
README.md | 4 years ago |
README.md
reversestrcap
Instructions
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'
).
If there are no argument, the program displays nothing.
Usage
student@ubuntu:~/reversestrcap$ go build
student@ubuntu:~/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e
firsT smalL tesT$
student@ubuntu:~/reversestrcap$ ./reversestrcap "SEconD Test IS a LItTLE EasIEr" "bEwaRe IT'S NoT HARd WhEN " " Go a dernier 0123456789 for the road e" | cat -e
seconD tesT iS A littlE easieR$
bewarE it'S noT harD wheN $
gO A dernieR 0123456789 foR thE roaD E$
student@ubuntu:~/reversestrcap$ ./reversestrcap
student@ubuntu:~/reversestrcap$