Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
!/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 i wrote a program but it doesnt work please help?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started