Pagini recente » Cod sursa (job #1186108) | Cod sursa (job #921326) | Cod sursa (job #1356628) | Cod sursa (job #2279067) | Cod sursa (job #2452524)
package Adunare;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Adunare {
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();
}
}