Pagini recente » Cod sursa (job #967142) | Cod sursa (job #723363) | Cod sursa (job #2376791) | Cod sursa (job #2979800) | Cod sursa (job #1430450)
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Scanner;
public class Suma {
public static void main(String[] args) throws IOException {
Scanner in = new Scanner(new FileInputStream("adunare.in"));
int a = in.nextInt();
int b = in.nextInt();
FileOutputStream out = new FileOutputStream("adunare.out");
out.write(a + b);
in.close();
out.close();
}
}