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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!