比较两个整数的大小
#!/bin/bash
#比较两个整数的大小 #
echo "*******************************************************"
echo "Enter the first Number:"
read num1
echo "*******************************************************"
echo "Enter the second Number:"
read num2
echo "*******************************************************"
if [ $num1 -lt $num2 ]
then
echo "${num1} is less than ${num2}"
else
echo "${num1} is bigger than ${num2}"
echo "*******************************************************"
fi
echo "*******************************************************"
:
阅读(1449) | 评论(1) | 转发(0) |