<%@page contentType="text/html;charset=gbk" %>
<html>
<head>
<title>
运算
</title>
</head>
<body bgcolor="#ffffff">
<h1>
关系运算符
</h1>
<form action="compare.jsp">
  <table border="1">
<tr>
  <td><b>数字 1</b></td><td><b>运算符</b></td><td><b>数字 2<b></td><td><b>结果</b></td>
  </tr>
<tr>
  <td><input type="text" name="num1" value="${param.num1}" size="5" maxlength="3"/></td>
  <td width=20 align="center"><b>gt &gt</b></td>
  <td><input type="text" name="num2" value="${param.num2}" size="5" maxlength="3"/></td>
  <td>${param.num1 gt param.num2}</td>
</tr>
<tr>
  <td><input type="text" name="num3" value="${param.num3}" size="5" maxlength="3"/></td>
  <td width=20 align="center"><b>lt &lt</b></td>
  <td><input type="text" name="num4" value="${param.num4}" size="5" maxlength="3"/></td>
  <td>${param.num3 lt param.num4}</td>
</tr>
<tr>
  <td><input type="text" name="num5" value="${param.num5}" size="5" maxlength="3"/></td>
  <td width=20 align="center"><b>eq ==</b></td>
  <td><input type="text" name="num6" value="${param.num6}" size="5" maxlength="3"/></td>
  <td>${param.num5 eq param.num6}</td>
</tr>
</table>
<input type="submit" value="结果"/>
</form>
</body>
</html>
