Pagini recente » Cod sursa (job #2083776) | Cod sursa (job #3154351) | Cod sursa (job #1695009) | Cod sursa (job #237032) | Cod sursa (job #1247496)
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws FileNotFoundException{
Scanner sc = new Scanner(new FileInputStream("adunare.in"));
PrintWriter pw = new PrintWriter(new File("adunare.out"));
int a , b , s;
a = sc.nextInt();
b = sc.nextInt();
s = a + b;
pw.println(s);
pw.close();
sc.close();
}
}