Pagini recente » Cod sursa (job #2354913) | Cod sursa (job #1305855) | Cod sursa (job #1309249) | Cod sursa (job #1324858) | Cod sursa (job #1430142)
import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
public class AplusB {
public static void main(String[] args) throws IOException {
Scanner reader = new Scanner(new FileInputStream("adunare.in"));
long a = reader.nextLong();
long b = reader.nextLong();
long sum = a + b;
PrintWriter writer = new PrintWriter("adunare.out");
writer.println(sum);
writer.close();
reader.close();
}
}