Pagini recente » Cod sursa (job #2730977) | Cod sursa (job #1078899) | Cod sursa (job #2628934) | Cod sursa (job #2747971) | Cod sursa (job #1431215)
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();
}
}