JSP实现 乘法口诀输出

<%@ 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>Insert title here</title>
</head>
<body>
<script>
for(var i=;i<=;i++)
{ for(var k=;k<=i;k++)
{
document.write(k+"x"+i+"="+k*i+"\t"+"&nbsp;")
}
document.write("<br />")
}
document.write("<br />")
document.write("<br />")
for (var i=;i<=;i++)
{
for (var k=;k<=i;k++)
{
document.write(i+"x"+k+"="+k*i+"\t"+"&nbsp;")
}
document.write("<br />")
}
</script>
<br>
<%
String b=" ";
for(int i=;i<=;i++)
{
for(int k=;k<=i;k++)
{
b+=k+"x"+i+"="+k*i+" ";
}
b=b+"<br>";
} %>
<%=b %> </body>
</html>

JSP实现  乘法口诀输出

上一篇:Jquery EasyUi实战教程布局篇


下一篇:Memcached 安装配置