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 csrf in java?
What is mq in java?
Is java built on c?
Is lambda functional programming?
What is transaction management in java?
In java what is the difference between sleep() and wait() .
What are anonymous methods and lambda expression?
What is the difference between Logical Parallelism and Physical Parallelism?
Is jdk an ide?
Is java a framework?
What is jep in java?
What is the use of servlet in java?
Write a program for the following topic - switch case,looping using fuction calling,nesting,console input output. Aim- to print a menu:- 1-series 2-single value. Each menu having sub menu armstrong or perfect.
What is the front end for java?
What is the difference between a jvm and a jdk?