Cod sursa(job #2451411)
Utilizator | Nechifor Eduard Andrei eduardandrei20 | Data | 26 august 2019 16:49:09 |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | java | Status | done |
Runda | Arhiva de probleme | Marime | 0.54 kb |
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws FileNotFoundException {
File file = new File("adunare.in");
File fileOut = new File("adunare.out");
Scanner scan = new Scanner(file);
int a = scan.nextInt();
int b = scan.nextInt();
PrintWriter pw = new PrintWriter("adunare.out");
pw.println(a+b);
pw.close();
}
}