Write a program to print the swapping in two no and using
three variable.
Answer Posted / anonymous
import java.util.*;
class S3v
{
public static void main(String args[])
{
int a,b,c;
Scanner s=new Scanner(System.in);
a=s.nextInt();
b=s.nextInt();
c=a-b;
a=a-c;
b=b+c;
System.out.print(a+" "+b);
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the components of stl?
sir please send me bpcl previous question papers
How is stl different from c++ standard library?
What do stl stand for?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
how can u do connectivity in c++ language? plz send me connectivity code in c++ ?
What is stl stand for?
what is template and type convertion
how to making game in c++ ?
Is stl open source?
What is meant by stl in c++?
What are the different types of stl containers?
How does an stl file work?
How do you convert stl to steps?
What are the symptoms of stl?