Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int number = 7;
- try {
- out.println("<html>");
- out.println("<head>");
- out.println("<title>Servlet DateServlet</title>");
- out.println("</head>");
- out.println("<body>");
- out.println("<h1>Multiplication Table " + request.getContextPath () + "</h1>");
- out.println("<table width=(150) border=(1) cellspacing=(2)>");
- for(int i=0;i<=10;i++){
- out.println("<tr><td>" + i + " * " + number + " = " + "</td>"
- + "<td>" + (i*number) + "</td></tr>");
- out.println("</table>");
- out.println("</body>");
Add Comment
Please, Sign In to add comment