Report the Arguments
Medium · Functions & Arguments · Positional parameters
Problem
The script is run with arguments. Print how many there are, then all of them on one line separated by spaces.
With alpha beta gamma the output is 3 then alpha beta gamma.
Approaches
- $# and "$@"
Related problems
Start free on Cariara · Coding problems · System design studio