Cod sursa(job #2182966)
Utilizator | Males Sebastian Senibelan | Data | 22 martie 2018 18:43:23 |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | java | Status | done |
Runda | Arhiva de probleme | Marime | 0.49 kb |
import java.io.*;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException{
FileReader in = new FileReader("adunare.in");
FileWriter out = new FileWriter("adunare.out");
BufferedReader buffer = new BufferedReader(in);
int a = Integer.parseInt(buffer.readLine());
int b = Integer.parseInt(buffer.readLine());
out.write(Integer.toString(a + b));
buffer.close();
out.close();
}
}