Pagini recente » Cod sursa (job #2601073) | Cod sursa (job #2878942) | Cod sursa (job #2118210) | Cod sursa (job #1606762) | Cod sursa (job #1431051)
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class Main {
static int a;
static int b;
public static void readDate() throws IOException{
BufferedReader br = new BufferedReader(new FileReader("adunare.in"));
BufferedWriter bw = new BufferedWriter(new FileWriter("adunare.out"));
a = Integer.parseInt(br.readLine());
b = Integer.parseInt(br.readLine());
System.out.println(a+b);
bw.write(a+b+"\n");
bw.close();
br.close();
}
public static void main(String[] args) throws IOException {
readDate();
}
}