Cod sursa(job #2452321)

Utilizator Liviu98Dinca Liviu Liviu98 Data 30 august 2019 14:30:40
Problema A+B Scor 100
Compilator java Status done
Runda Arhiva de probleme Marime 0.41 kb
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);
	}
}