Pagini recente » Cod sursa (job #1622654) | Cod sursa (job #3202911) | Cod sursa (job #1447942) | Cod sursa (job #851511) | Cod sursa (job #1543872)
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) {
long a = 0;
long b = 0;
File input = new File( "adunare.in");
File output = new File( "adunare.out");
try {
Scanner sc = new Scanner(input);
a = sc.nextLong();
b = sc.nextLong();
sc.close();
} catch (FileNotFoundException e) {
}
try {
FileWriter wr = new FileWriter(output);
wr.write( (a+b) + "");
wr.close();
} catch (IOException e) {
}
}
}