< HTML>
Declaring Multiple Methods
Declaring Multiple Methods
<%!
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) + "
");
out.println("8 - 2 = " + subtractem(8, 2) + "
");
%>