Pagini recente » Cod sursa (job #2426212) | Cod sursa (job #1502036) | Cod sursa (job #153378) | Cod sursa (job #847429) | Cod sursa (job #1430281)
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class testPA
{
public void main(String[] args) throws FileNotFoundException
{
Scanner scanner = new Scanner (new FileInputStream("adunare.in"));
int a = scanner.nextInt();
int b = scanner.nextInt();
a = a + b;
PrintWriter writer = new PrintWriter("adunare.out");
writer.print(a);
writer.flush();
writer.close();
scanner.close();
}
}