Pagini recente » Cod sursa (job #1819199) | Cod sursa (job #289103) | Cod sursa (job #1136281) | Cod sursa (job #1058095) | Cod sursa (job #1431216)
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 Main {
/**
* @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();
}
}