Pagini recente » Cod sursa (job #1432045) | Cod sursa (job #1433229) | Cod sursa (job #1432307) | Cod sursa (job #1741385) | Cod sursa (job #1431298)
import java.io.*;
import java.util.Scanner;
/*
* 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.
*/
/**
*
* @author Andrei
*/
public class Main {
public static void main(String[] args)throws IOException
{
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();
}
}