Pagini recente » Cod sursa (job #1879210) | Cod sursa (job #2392848) | Rating Zagrean Mircea (big-s) | Cod sursa (job #1314408) | Cod sursa (job #2447875)
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package aria_infoarena;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
/**
*
* @author dakata
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws FileNotFoundException, IOException {
// TODO code application logic here
BufferedReader br = new BufferedReader(new FileReader("adunare.in"));
BufferedWriter bw = new BufferedWriter(new FileWriter("adunare.out"));
int a = Integer.parseInt(br.readLine());
int b = Integer.parseInt(br.readLine());
bw.write(a+b);
}
}