Pagini recente » Cod sursa (job #3258854) | Cod sursa (job #395165) | Cod sursa (job #1525063) | Monitorul de evaluare | Cod sursa (job #2452321)
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws FileNotFoundException {
Scanner scanner = new Scanner(new FileInputStream("adunare.in"));
PrintStream writer = new PrintStream("adunare.out");
int a = Integer.parseInt(scanner.nextLine());
int b = Integer.parseInt(scanner.nextLine());
int sum = a + b;
writer.println(sum);
}
}