<html>
<head>
<title>Declaration |
Expression | Scriplet</title>
</head>
<body style
="background-color:lightblue">
<%-- Scriplet --%>
<p><h1
style="color:red"><% out.print("Sarvoday Polytechnic
Institute,Limbdi");%></h1></p>
<%-- Expression --%>
<p><b>Addtion of
Three nose(1,2,3): </b><%= 1 + 2 + 3 %></p>
<%-- Declaration --%>
<%!int p=1;int q=2;int
r=3;%>
<p><b>Multiplication
of three nos(1,2,3) : </b><%=p * q * r%></p>
</body>
</html>
Output
:
No comments:
Post a Comment