Pagini recente » Cod sursa (job #1813461) | Cod sursa (job #1963695) | Cod sursa (job #1398464) | Cod sursa (job #781116) | 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();
}
}