Page 1 of 1

Write a script that reads in three arguments on the command line and finds their average to two decimal places. Name it

Posted: Mon May 09, 2022 5:55 am
by answerhappygod
Write A Script That Reads In Three Arguments On The Command Line And Finds Their Average To Two Decimal Places Name It 1
Write A Script That Reads In Three Arguments On The Command Line And Finds Their Average To Two Decimal Places Name It 1 (63.38 KiB) Viewed 22 times
Write a script that reads in three arguments on the command line and finds their average to two decimal places. Name it avg3. I will run it like: avg3 359 and it will print out: Average of 3, 5, and 9 is 5.67 If I enter something like: * avg3 35 * avg3 3 4 5 6 * avg3 3 one 5 it needs to print an error telling me how to use it.