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
Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister
sir please send me bpcl previous question papers
What are stl algorithms?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
What is stl stand for?
Define stl.
Who wrote stl?
Is string part of stl?
To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command
totoo po ba ang manga aliens!
What is stl in c++ with example?
Why should a c++ programmer be interested in stl?
how can u do connectivity in c++ language? plz send me connectivity code in c++ ?
How do you convert stl to steps?
What is stl stack?