How can I echo questions to the Terminal, and pass the answers to the same script?
The steps would be:
A script that output the questions - one question after the other where I can add the answers after the
:.Example:
Number 1: 2Number 2: 4Number 3: 6A way to pass the arguments given in step 1 to the script and calculate the sum.
The final output would be: 12.
expectfor how to pass arguments, or have a script that can take the values in other ways like command line arguments