Cod sursa(job #2452320)
Utilizator | Dinca Liviu Liviu98 | Data | 30 august 2019 14:29:49 |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | java | Status | done |
Runda | Arhiva de probleme | Marime | 0.49 kb |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws FileNotFoundException {
Scanner scanner = new Scanner(new FileInputStream("C:\\Users\\FloriNA\\Desktop\\A+B\\src\\adunare.in"));
PrintStream writer = new PrintStream("C:\\Users\\FloriNA\\Desktop\\A+B\\src\\adunare.out");
int a = Integer.parseInt(scanner.nextLine());
int b = Integer.parseInt(scanner.nextLine());
int sum = a + b;
writer.println(sum);
}
}