Pagini recente » Cod sursa (job #55458) | Cod sursa (job #2481002) | Cod sursa (job #351160) | Cod sursa (job #1913142) | Cod sursa (job #1703771)
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;
class AB {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(new File("adunare.in"));
int a = sc.nextInt();
int b = sc.nextInt();
BufferedWriter bw = new BufferedWriter(new FileWriter(new File("adunare.out")));
bw.write((a+b)+"\n");
bw.close();
}
}