From 5cb1e96818937128361a3990aa8c76f9fcf8e7ef Mon Sep 17 00:00:00 2001 From: xpetit <32063953+xpetit@users.noreply.github.com> Date: Tue, 27 Apr 2021 22:54:06 +0200 Subject: [PATCH] Simplify --- subjects/isnegative/README.md | 5 ++--- subjects/printalphabet/README.md | 5 ++--- subjects/printcomb/README.md | 5 ++--- subjects/printcomb2/README.md | 5 ++--- subjects/printcombn/README.md | 5 ++--- subjects/printdigits/README.md | 5 ++--- subjects/printnbr/README.md | 5 ++--- subjects/printreversealphabet/README.md | 5 ++--- 8 files changed, 16 insertions(+), 24 deletions(-) diff --git a/subjects/isnegative/README.md b/subjects/isnegative/README.md index 4fd58bf8d..bdee3cf3a 100644 --- a/subjects/isnegative/README.md +++ b/subjects/isnegative/README.md @@ -31,10 +31,9 @@ func main() { And its output : ```console -student@ubuntu:~/isnegative/test$ go build -student@ubuntu:~/isnegative/test$ ./test +$ go run . F F T -student@ubuntu:~/isnegative/test$ +$ ``` diff --git a/subjects/printalphabet/README.md b/subjects/printalphabet/README.md index 705edd8fb..02f1983ee 100644 --- a/subjects/printalphabet/README.md +++ b/subjects/printalphabet/README.md @@ -9,8 +9,7 @@ A line is a sequence of characters preceding the [end of line](https://en.wikipe ### Usage ```console -student@ubuntu:~/printalphabet$ go build -student@ubuntu:~/printalphabet$ ./printalphabet +$ go run . abcdefghijklmnopqrstuvwxyz -student@ubuntu:~/printalphabet$ +$ ``` diff --git a/subjects/printcomb/README.md b/subjects/printcomb/README.md index 969f94252..fea8eadbe 100644 --- a/subjects/printcomb/README.md +++ b/subjects/printcomb/README.md @@ -31,10 +31,9 @@ func main() { This is the incomplete output : ```console -student@ubuntu:~/printcomb/test$ go build -student@ubuntu:~/printcomb/test$ ./test | cat -e +$ go run . | cat -e 012, 013, 014, 015, 016, 017, 018, 019, 023, ..., 689, 789$ -student@ubuntu:~/printcomb/test$ +$ ``` `000` or `999` are not valid combinations because the digits are not different. diff --git a/subjects/printcomb2/README.md b/subjects/printcomb2/README.md index 464e7e9e3..ce7aff737 100644 --- a/subjects/printcomb2/README.md +++ b/subjects/printcomb2/README.md @@ -31,8 +31,7 @@ func main() { This is the incomplete output : ```console -student@ubuntu:~/printcomb2/test$ go build -student@ubuntu:~/printcomb2/test$ ./test | cat -e +$ go run . | cat -e 00 01, 00 02, 00 03, ..., 00 98, 00 99, 01 02, 01 03, ..., 97 98, 97 99, 98 99$ -student@ubuntu:~/printcomb2/test$ +$ ``` diff --git a/subjects/printcombn/README.md b/subjects/printcombn/README.md index d08107941..78d8f9fd9 100644 --- a/subjects/printcombn/README.md +++ b/subjects/printcombn/README.md @@ -39,10 +39,9 @@ func main() { And its output : ```console -student@ubuntu:~/printcombn/test$ go build -student@ubuntu:~/printcombn/test$ ./test +$ go run . 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 012, 013, 014, 015, 016, 017, 018, ... 679, 689, 789 012345678, 012345679, ..., 123456789 -student@ubuntu:~/printcombn/test$ +$ ``` diff --git a/subjects/printdigits/README.md b/subjects/printdigits/README.md index fbf064f22..403817641 100644 --- a/subjects/printdigits/README.md +++ b/subjects/printdigits/README.md @@ -9,8 +9,7 @@ A line is a sequence of characters preceding the end of line character (`'\n'`). ### Usage ```console -student@ubuntu:~/printdigits$ go build -student@ubuntu:~/printdigits$ ./printdigits +$ go run . 0123456789 -student@ubuntu:~/printdigits$ +$ ``` diff --git a/subjects/printnbr/README.md b/subjects/printnbr/README.md index f2ebd080a..f90ee351b 100644 --- a/subjects/printnbr/README.md +++ b/subjects/printnbr/README.md @@ -36,8 +36,7 @@ func main() { And its output : ```console -student@ubuntu:~/printnbr/test$ go build -student@ubuntu:~/printnbr/test$ ./test +$ go run . -1230123 -student@ubuntu:~/printnbr/test$ +$ ``` diff --git a/subjects/printreversealphabet/README.md b/subjects/printreversealphabet/README.md index da5d69025..f15e0b174 100644 --- a/subjects/printreversealphabet/README.md +++ b/subjects/printreversealphabet/README.md @@ -11,8 +11,7 @@ Please note that `casting` is not allowed for this exercise! ### Usage ```console -student@ubuntu:~/printreversealphabet$ go build -student@ubuntu:~/printreversealphabet$ ./printreversealphabet +$ go run . zyxwvutsrqponmlkjihgfedcba -student@ubuntu:~/printreversealphabet$ +$ ```