Pagini recente » Cod sursa (job #1741693) | Cod sursa (job #1432221) | Cod sursa (job #1430987) | Cod sursa (job #1431788) | Cod sursa (job #1430953)
import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
int a, b, suma;
Scanner s = new Scanner(new FileInputStream("adunare.in"));
a = s.nextInt();
b = s.nextInt();
s.close();
suma = a + b;
PrintWriter pw = new PrintWriter("adunare.out");
pw.write(suma);
pw.close();
}
}