Cod sursa(job #1430561)
| Utilizator | Data | 8 mai 2015 16:49:55 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | java | Status | done |
| Runda | teme_upb | Marime | 0.56 kb |
package suma;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc;
File file = new File ("adunare.in");
sc = new Scanner(file);
int x = sc.nextInt();
int y = sc.nextInt();
int z = x + y;
sc.close();
FileWriter fw = new FileWriter(new File("adunare.out"));
fw.write(z);
fw.close();
}
}
