Write a shell script to check if a number enter by user is greater than 100 or not?



echo “enter a number”
read a
if [ $n –gt 100 ]
then
echo” greater than 100”
else
echo “ number is not greater than 100”
fi

OUTPUT:

enter a number
50
number is not greater than 100

Comments

Popular posts from this blog

Write a program to add two number using inline function in C++?

Traversing of elements program with algorithm and Flowchart