Write a shell script to find greater from two numbers

 


Write a shell script to find greater from two numbers



Program :-



#!/bin/bash

echo "Utsav Gohel  91900104011"

echo -n " Enter A :-"

read A

echo -n " Enter B :-"

read B

 

if [ $A -gt $B ]

then

  echo " A is Gretter then B ..."

else

  echo " B is Gretter then A ..."

fi

 

 

Output :