//wap to swap two values of 2nos
//wap to swap two values of 2nos
import java.util.Scanner;
public class swap1
{
public static void main(String[] args)
{
Scanner s=new Scanner(System.in);
int a=s.nextInt();
int b=s.nextInt();
System.out.println(a);
System.out.println(b);
a=a+b;
b=a-b;
a=a-b;
System.out.println(a);
System.out.println(b);
}
}
Comments
Post a Comment