Thursday, September 5, 2019



                                               ADDITION OF TWO INTEGERS

import java.util.*;

// Remember that the class name should be "Main" and should be "public".
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int T=sc.nextInt();
while(T>0){
   long x=sc.nextInt();
   long y=sc.nextInt();
   long  result=x+y;
   System.out.println(result);
   T--;
}

}
}

No comments:

Post a Comment