#!/bin/bash
echo "please enter three number:"
read -p "the first number is :" n1
read -p "the second number is :" n2
read -p "the third number is :" n3
let MAX=$n1
if [ $n2 -ge $n1 ]
then
MAX=$n2
fi
if [ $n3 -ge $MAX ]
then
MAX=$n3
fi
echo "the max number is $MAX"
本文出自 “IT屌丝” 博客,请务必保留此出处http://68686789.blog.51cto.com/10438688/1692084
原文地址:http://68686789.blog.51cto.com/10438688/1692084