<%!int sum(int a, int b) {
return a + b;
}%>
<%
out.println("2 + 3 = " + sum(2, 3));
%>
<%
int a = 10;
int b = 20;
int c = 30;
%>
<%=a + b + c%>
<%
int a = 2;
int b = 3;
int sum = a + b;
out.println("2 + 3 = " + sum);
%>
<%
for (int i = 0; i <= 10; i++) {
if (i % 2 == 0)
out.println(i + "<br>");
}
%>