Pagini recente » Cod sursa (job #2261897) | Cod sursa (job #2482527) | Cod sursa (job #866146) | Cod sursa (job #337132) | 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();
}
}