Pagini recente » Cod sursa (job #3211735) | Cod sursa (job #2168702) | Cod sursa (job #2233115) | Cod sursa (job #2444625) | Cod sursa (job #1431097)
import java.io.*;
import java.util.*;
public class Adunare {
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();
}
}