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
When did c++ add stl?
write a program to convert a decimal number in to its equivalent binary number?
What are stl algorithms?
How stl is different from the c++ standard library?
How connect plc and pc through software
What are the symptoms of stl?
What is stl language?
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999
How do you convert stl to steps?
What is stl in c++ with example?
Is stl part of c++ standard?
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html
What is the stl, standard template library?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What is a stl vector?