Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



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


Please Help Members By Posting Answers For Below Questions

What are the components of stl?

1164


sir please send me bpcl previous question papers

2456


How is stl different from c++ standard library?

1392


What do stl stand for?

1198


i wanted to know about questions about c,c++ , which is required for placements.... im a fresher

2265


how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

2395


What is stl stand for?

1277


what is template and type convertion

2489


how to making game in c++ ?

2781


Is stl open source?

1186


What is meant by stl in c++?

1207


What are the different types of stl containers?

1203


How does an stl file work?

1221


How do you convert stl to steps?

1204


What are the symptoms of stl?

1151