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
What is meant by java se?
Is jpa a framework?
What is flatmap in java8?
What is exe file in java?
Is openjdk the same as jdk?
i have client interview in TCS.client is CITI BANK.how to face it,what type of questions they will ask,please tell send me to kumar525job@gmail.com
Can a dead thread be started again?
What is java net url?
How can c# app request minimum permissions? : java security
What is a flatmap?
What are jpa annotations?
Are jvm’s platform independent?
What is stateless in java?
How do I start netbeans?
What is proxy object in java?