Cod sursa(job #1430974)
Utilizator | Data | 8 mai 2015 22:33:02 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | java | Status | done |
Runda | Arhiva de probleme | Marime | 0.42 kb |
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 {
Scanner s = new Scanner(new FileInputStream("adunare.in"));
int a = s.nextInt();
int b = s.nextInt();
PrintWriter p = new PrintWriter("adunare.out");
p.write(a + b);
p.close();
s.close();
}
}