What is a shell? Write a Shell Script to find the largest among the 3 given numbers using
‘nested if’ commands.
Answers
Answered by
1
Answer:
Algorithm
1. Get three numbers. Say num1, num2, num2
2. If (num1 > num2) and (num1 > num3)
echo value of num1
3. elif(num2 > num1) and (num2 > num3)
echo value of num2
4. Otherwise,
echo value of num3
Attachments:
Similar questions