Cod sursa(job #1261054)
Utilizator | Data | 11 noiembrie 2014 21:50:04 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | java | Status | done |
Runda | Arhiva de probleme | Marime | 0.47 kb |
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
class Adunare {
public static void main(String[] args) throws FileNotFoundException, IOException {
Scanner sc = new Scanner(new FileReader("adunare.in"));
int x=sc.nextInt(), y = sc.nextInt();
PrintWriter pw = new PrintWriter("adunare.out","UTF-8");
pw.write(x+y);
sc.close(); pw.close();
}
}