#! /bin/sh
# Write a shell script to read a number from user and check whetherhe message numm the number is less than or equal to 99, if it is less than 99 then display the message number is less than 99 otherwise number is greater.
echo "Enter the number "
read number
if test $number -le 99
then
echo "The entered number is less than or equal to 99 "
else
echo "The number is greater than 99 "
fi
# Write a shell script to read a number from user and check whetherhe message numm the number is less than or equal to 99, if it is less than 99 then display the message number is less than 99 otherwise number is greater.
echo "Enter the number "
read number
if test $number -le 99
then
echo "The entered number is less than or equal to 99 "
else
echo "The number is greater than 99 "
fi



0 comments:
Post a Comment