From 8913aa6410356df1fac055e113d1b52dc08df32b Mon Sep 17 00:00:00 2001 From: zainabdnaya Date: Fri, 17 Jun 2022 23:37:39 +0100 Subject: [PATCH] issirted subject --- subjects/sorted_arg/README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 subjects/sorted_arg/README.md diff --git a/subjects/sorted_arg/README.md b/subjects/sorted_arg/README.md new file mode 100644 index 000000000..5d8e9a7dc --- /dev/null +++ b/subjects/sorted_arg/README.md @@ -0,0 +1,33 @@ +## arg-issorted + +### Instruction + +Write a program where you define if an argument is sorted or not sorted: +- Your Program should return T if an argument is sorted. +- Your Program should return F if an argument is not sorted. +- If The argument is empty nothing will be printed. +- If the number of arguments is not `1` Print nothing. +- If the length argument is equal to `1` Print nothing. +- Your program should always print `('\n') `at the end of the output. + +### Usage + +Here is a program to test your function. + +```console +$ go run . | cat -e +$ +$ go run . a | cat -e +$ +$ go run . " 5ABc" | cat -e +T$ +$ go run . "zA1" | cat -e +F$ +$ go run . "01Talent" "student" | cat -e +$ +$ go run . "Hello World" | cat -e +F$ +$ go run . "a b c" | cat -e +F$ +``` +