Answer Posted / vishal
<%@ page language="java" %>
<html>
<head>
<TITLE>Swap Numbers </TITLE>
</head>
<body bgcolor="red" >
<FONT SIZE=4 COLOR=white><U>Program to Swap 2
Numbers</U></FONT><BR>
<%
int a=1;
int b=3;
out.print("<FONT SIZE=3 COLOR=white>");
out.println("the number is swapping "+a+"+b);
out.println("<br>");
int b=a+b;
int b=a-b;
int a=a-b;
out.println("the swapped number is a = " + a + " b = " + b);
out.print("</Font>");
%>
</body>
</html>
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
Is php faster than java?
What is predicate in lambda expression?
I am trying to create a new universal user group. Why can't i? : java security
Where are group policies stored? : java security
For each of the following program segments,give a big zero
analysis for the running time
1.For (i=0;i Where is java installed? What does @override mean in java? What are jpa annotations? What is hql in java? What is jpa used for? What is the front end for java? What is meant by java se? What is the difference between a jdk and a jvm? What is stateless class in java? Is java secure? : java security