Write a short interactive shell script that Asks the user fo

Write a short, interactive shell script that

Asks the user for a numeric variable A

Asks the user for a numeric variable B

Echoes the text “A minus B equals:”

Solution

echo \"Numeric variable A :\"

read A

echo \"Numeric variable B :\"    

read B                                                                               

echo \"A minus B equals: $(( A - B ))\"                                                                                                         

Write a short, interactive shell script that Asks the user for a numeric variable A Asks the user for a numeric variable B Echoes the text “A minus B equals:”So

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site