Pagini recente » Cod sursa (job #2258914) | Cod sursa (job #2567570) | Cod sursa (job #1408751) | Cod sursa (job #1849861) | Cod sursa (job #1420936)
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
/**
* @param args
* @throws FileNotFoundException
*/
public static void main(String[] args) throws FileNotFoundException {
int a, b;
Scanner sc = new Scanner(new FileInputStream("adunare.in"));
PrintWriter pr = new PrintWriter(new FileOutputStream("adunare.out"));
a = sc.nextInt();
b = sc.nextInt();
pr.print(a + b);
sc.close();
pr.close();
}
}