Pagini recente » Cod sursa (job #3195476) | Cod sursa (job #2073505) | Cod sursa (job #2099776) | Diferente pentru problema/maxsecv intre reviziile 7 si 8 | Cod sursa (job #2061240)
package infoarena;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(new FileInputStream("adunare.in"));
FileOutputStream fos = new FileOutputStream("adunare.out");
int a = sc.nextInt();
int b = sc.nextInt();
fos.write(a+b);
sc.close();
fos.close();
}
}