Pagini recente » Cod sursa (job #2520640) | Cod sursa (job #1220364) | Cod sursa (job #381685) | preoni_0 | Cod sursa (job #1247488)
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class MainClass {
public static void main(String[] args) throws FileNotFoundException{
Scanner sc = new Scanner(new File("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();
}
}