<HTML>
<HEAD>
<TITLE>Declaring Multiple Methods</TITLE>
</HEAD>
<BODY>
<H1>Declaring Multiple Methods</H1>
<%!
int addem(int op1, int op2)
{
return op1 + op2;
}
int subtractem(int op1, int op2)
{
return op1 - op2;
}
%>
<%
out.println("2 + 2 = " + addem(2, 2) + "<BR>");
out.println("8 - 2 = " + subtractem(8, 2) + "<BR>");
%>
</BODY>
</HTML>
|