<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>구구단</title>
</head>
<body>
2단을 출력하자<br/>
<% int a=2;
for(int b=1;b<10;b++){
int c=a*b;
%>
<%=a %>*<%=b %> =<%=c %> <br/>
<%} %>
2~9단을 출력하자<br/>
<% for(int i=2;i<10;i++){
%>
--- <%=i %>단---<br/>
<% for(int j=1;j<10;j++){
int z;
z=i*j;
%>
<%=i %> * <%=j %> = <%=z %><br/>
<%}%>
<%}%>
</body>
</html>