Addition and Subtraction
Addition and Subtraction
<%
int operand1 = 15, operand2 = 24, sum, difference;
sum = operand1 + operand2;
difference = operand1 - operand2;
out.println(operand1 + " + " + operand2 + " = " + sum + "
");
out.println(operand1 + " - " + operand2 + " = " + difference);
%>