Pagini recente » Cod sursa (job #1175542) | Cod sursa (job #511951) | Cod sursa (job #3233621) | Statistici Florin Gheorghe (cyg_SerbanB) | 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();
}
}