Cod sursa(job #1261066)
| Utilizator | Data | 11 noiembrie 2014 21:56:21 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | java | Status | done |
| Runda | Arhiva de probleme | Marime | 0.53 kb |
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
class Main {
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");
Integer z = x+y;
System.out.println(z);
pw.write(z);
pw.flush();
sc.close(); pw.close();
}
}
