Answered step by step
Verified Expert Solution
Link Copied!

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
i wrote a program but it doesnt work please help?
image text in transcribed
image text in transcribed
!/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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions

Question

8. Managers are not trained to be innovation leaders.

Answered: 1 week ago