Pagini recente » Cod sursa (job #229471) | Cod sursa (job #795626) | Cod sursa (job #2737004) | Cod sursa (job #2481813) | Cod sursa (job #1431093)
import java.io.*;
import java.util.*;
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.print(String.format("%d", sum));
pw.close();
}
}