Pagini recente » Cod sursa (job #6154) | Cod sursa (job #477684) | Cod sursa (job #2641253) | Cod sursa (job #2648467) | Cod sursa (job #1704063)
package aplusb;
import java.util.*;
import java.io.*;
/***
*
* @author Patrick
*
*/
public class Sample {
public static void main(String[] args) throws FileNotFoundException {
Scanner scanner = new Scanner(new BufferedInputStream(new FileInputStream("adunare.in")));
int A = scanner.nextInt(), B = scanner.nextInt();
PrintStream output = new PrintStream(new FileOutputStream("adunare.out"));
output.println(A + B);
}
}