- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestSetup.java
More file actions
Latest commit
25 lines (20 loc) · 758 Bytes
/
Copy pathTestSetup.java
File metadata and controls
25 lines (20 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
importjava.io.BufferedReader;
importjava.io.IOException;
importjava.io.InputStreamReader;
importjava.io.PrintWriter;
publicclassTestSetup {
publicstaticvoidmain(String[] args) throwsIOException {
BufferedReaderbr = newBufferedReader(newInputStreamReader(System.in));
PrintWriterpw = newPrintWriter(System.out);
intt = Integer.parseInt(br.readLine());
while (t-- > 0) {
String[] input = br.readLine().split(" ");
inta = Integer.parseInt(input[0]);
intb = Integer.parseInt(input[1]);
intsum = a + b;
pw.println("Sum of " + a + " and " + b + " is: " + sum);
}
pw.close();
br.close();
}
}