Pagini recente » Cod sursa (job #934280) | Cod sursa (job #1349739) | Cod sursa (job #2653983) | Cod sursa (job #860517) | Cod sursa (job #1430452)
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();
}
}