Sunday, April 24, 2022

Very Simple Shell Script which help to learn codition, loop, pause,calculation etc.

In case, need ready made or want to learn condtion, loop, pause, calculation etc. in unix shell script. Plz. DM me.

a. Asks for two numbers (operands) from the user

b. Check if the second number is zero, gives and error and ask the user to inputt wo new numbers.

c. Divide the first number by the second number and output the result.























d. Counts backwards from 10 to 1
e. Displays the current number
f. Pauses for 1 second between number























a. Asks the user for the length and width (in feet) of a rectangular room
b. Calculates the area of the room
c. Displays the result to the user





No comments:

Post a Comment