Pagini recente » Autentificare | Clasament oni2017ziua1 | Clasament bazat1 | Cod sursa (job #1432898) | Cod sursa (job #1430899)
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
/**
*
* @author Stef
*/
public class Main {
public static void main(String[] args) throws FileNotFoundException{
Scanner reader = new Scanner(new FileInputStream("adunare.in"));
int a = reader.nextInt();
int b = reader.nextInt();
int sum = a + b;
PrintWriter writer = new PrintWriter("adunare.out");
writer.write(String.valueOf(sum) + "\n");
writer.close();
reader.close();
}
}