Question: you need to write a script that either accepts a command line argument or program input. The script sould double the argument and print that
you need to write a script that either accepts a command line argument or program input. The script sould double the argument and print that doubled value. Assuming your script is named "odp405" odp405 17 should print a single line: 34 odp405 (with no arguments) should prompt with a single character ">" after which the user enters a number. It then prints twice that number.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
