Question: write a shell script programming to find the maximum of three number i wrote a program but it doesnt work please help? !/bin/bash echo enter

write a shell script programming to find the maximum of three number
i wrote a program but it doesnt work please help?
 write a shell script programming to find the maximum of three
number i wrote a program but it doesnt work please help? !/bin/bash

!/bin/bash echo "enter the first number" read first echo "enter the second number" read second echo "enter the third number" read third if [Sfirst -gt $sec]; then if [ Sfirst -gt $third ] then echo -e "Sfirst is the maximum number" else echo -e "$third is the maxtmum number" fi else if [ssecond -gt $third]; then echo -e "$second is the maximum number" else echo -e "$third is the maxtmum number" fi fi

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!