From 9fc547d843e3f83422faf1431519a09ba0395c09 Mon Sep 17 00:00:00 2001 From: hamza Date: Tue, 14 Jun 2022 12:54:03 +0100 Subject: [PATCH] subject(param_range):add Readme --- subjects/paramrange/README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 subjects/paramrange/README.md diff --git a/subjects/paramrange/README.md b/subjects/paramrange/README.md new file mode 100644 index 00000000..fa3d8da7 --- /dev/null +++ b/subjects/paramrange/README.md @@ -0,0 +1,20 @@ +## param-range + +### instructions + +- Write a program that takes a number in the arguments and prints the max and min. + - If the number of arguments is less than 2 print (`'\n'`) + - If one of the arguments is not a number, print (`"Error\n"`) + - The output should be space-separated and (`'\n'`) at the end. + +### Usage +```console +$ go run . | cat -e +$ +$ go run . 1 2 3 4 5 6 7 8 9 | cat -e +1 9$ +$ go run . -1 1 | cat -e +-1 1$ +$ go run . 1 a 2 3 4 5 6 7 8 9 | cat -e +$ +``` \ No newline at end of file