//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

Popular posts from this blog

A story of friendship A tiger and a rat......become a revengable....

best pen drive

wap to perform subtraction