From 59c00df372ac7e28ecf90929b786057505b144b0 Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Thu, 25 Apr 2019 19:52:16 +0100 Subject: [PATCH] reformatting and correction of title --- subjects/reversestrcap.en.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 subjects/reversestrcap.en.md diff --git a/subjects/reversestrcap.en.md b/subjects/reversestrcap.en.md new file mode 100644 index 000000000..3dc04544d --- /dev/null +++ b/subjects/reversestrcap.en.md @@ -0,0 +1,27 @@ +## reversestrcap + +### Instructions + +Write a program that takes one or more strings and that, **for each argument**: +-puts the last character of each word (if it is a letter) in uppercase and the rest +in lowercase +-then it displays the result followed by a `\n`. + +A word is a sequence of alphanumerical characters. + +If there are no parameters, the program displays a `\n`. + +Examples of outputs : + +```console +student@ubuntu:~/student/reversestrcap$ go build +student@ubuntu:~/student/reversestrcap$ ./reversestrcap "First SMALL TesT" | cat -e +firsT smalL tesT$ +student@ubuntu:~/student/reversestrcap$ ./reversestrcap go run reversestrcap.go "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:~/student/reversestrcap$ ./reversestrcap | cat -e +$ +student@ubuntu:~/student/reversestrcap$ +```