Pagini recente » Cod sursa (job #2448671) | Cod sursa (job #2723742) | Cod sursa (job #2723967) | Cod sursa (job #1840992)
import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) {
File inFile = new File("adunare.in");
File outFile = new File("adunare.out");
try {
// FileInputStream inStream = new FileInputStream(inFile);
Scanner scanner = new Scanner(new File("adunare.in"));
int a = scanner.nextInt();
int b = scanner.nextInt();
scanner.close();
// inStream.close();
int ans = a + b;
try {
// FileOutputStream outStream = new FileOutputStream(outFile);
PrintWriter writer = new PrintWriter("adunare.out", "UTF-8");
writer.println(ans);
writer.close();
// outStream.close();
} catch (IOException e) {
}
} catch (IOException e) {
}
}
}