Find the greatest among two numbers [Shell Program]



echo "Enter 1st number :\c"


read a


echo "Enter 2nd number :\c"


read b


if [ $a -gt $b ]


then


echo "$a greater than $b"


else


echo "$b less than $a"


fi





Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C