Pagini recente » Cod sursa (job #1184617) | Cod sursa (job #2597498) | Cod sursa (job #1432851) | Cod sursa (job #2948728) | Cod sursa (job #1430282)
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
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();
}
}