Thursday, 11 December 2014

Shell Script to find the Larger of two numbers

Write a Shell Script to find the Larger of two numbers

Solution:

echo Enter the  two numbers
read a b
if test $a -gt $b
then
echo $a is greater than $b
else
echo $b is greater than $a
fi

Execution:

No comments:

Post a Comment