Pagini recente » Cod sursa (job #3292909) | Borderou de evaluare (job #2100050) | Cod sursa (job #3149902) | Cod sursa (job #3252408) | Cod sursa (job #2451411)
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws FileNotFoundException {
File file = new File("adunare.in");
File fileOut = new File("adunare.out");
Scanner scan = new Scanner(file);
int a = scan.nextInt();
int b = scan.nextInt();
PrintWriter pw = new PrintWriter("adunare.out");
pw.println(a+b);
pw.close();
}
}