/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Adpator;

import java.util.Scanner;
public class Complex {
        Scanner input=new Scanner(System.in);
        int realNum1,imgNum1, realNum2,imgNum2;
        public Complex(){
            //addComplex();
        }
     public void addComplex(){
        System.out.println("Enter the real and imagnery number of the 1st comlex number : ");
        realNum1=input.nextInt();
        imgNum1=input.nextInt();
        System.out.println("Enter the real number and imagnery of the 2nd comlex number : ");
        realNum2=input.nextInt();
        imgNum2=input.nextInt();
        System.out.println("Sum of complex number="+(realNum1+realNum2)+"+ "+(imgNum1+imgNum2)+"i");

     }
        
}
