Cod sursa(job #1925729)
| Utilizator | Data | 13 martie 2017 17:09:14 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | java | Status | done |
| Runda | Arhiva de probleme | Marime | 0.51 kb |
import java.io.*;
/**
* Created by daniel1.macovei on 3/13/2017.
*/
class APlusB {
public static void main(String[] args) throws IOException {
int a, b;
try (BufferedReader reader = new BufferedReader(new FileReader("adunare.in"))) {
a = Integer.valueOf(reader.readLine());
b = Integer.valueOf(reader.readLine());
}
try (PrintWriter writer = new PrintWriter(new File("adunare.out"))) {
writer.println(a + b);
}
}
}
