Cod sursa(job #1431215)
| Utilizator | Data | 9 mai 2015 03:22:07 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | java | Status | done |
| Runda | teme_upb | Marime | 0.58 kb |
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
public class ab {
/**
* @param args
* @throws IOException
*/
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new FileReader("adunare.in"));
int a = Integer.parseInt(br.readLine());
int b = Integer.parseInt(br.readLine());
br.close();
PrintWriter p = new PrintWriter(new FileWriter("adunare.out"));
p.print(a + b);
p.close();
}
}
