Answer to Question #259126 in HTML/JavaScript Web Application for pooja

Question #259126

b) Explain with the help of an example/diagram or write code for the following using JSP:


a) Use of scriptlet with the help of an example on displaying a number series from 1 to 10



1
Expert's answer
2021-11-03T00:46:44-0400
<!DOCTYPE html >
<html>
<head>
    <title>Natural Number Addition</title>
</head>
<body>
    <% out.println("The natural numbers scriptlet"); %>
    <% int j;%>
    <% for (j = 1; j <= 10; j++)
       {
           printf("%d ",j);    
       }%>
</body>
</html>

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS