Pagini recente » Cod sursa (job #255961) | Cod sursa (job #2888616) | Cod sursa (job #877283) | Cod sursa (job #1797685) | Cod sursa (job #1431101)
import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
Scanner sc = new Scanner(new FileInputStream("adunare.in"));
int a = sc.nextInt();
int b = sc.nextInt();
int sum = a + b;
sc.close();
PrintWriter pw = new PrintWriter("adunare.out");
pw.write(String.format("%d", sum));
pw.close();
}
}