Pagini recente » Cod sursa (job #1602125) | Cod sursa (job #2894862) | Cod sursa (job #2308026) | Cod sursa (job #2375485) | Cod sursa (job #1430773)
/*
* 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.
*/
package testpractic;
/**
*
* @author Cristian LUPU - CC334
*/
import java.io.*;
import java.util.Scanner;
public class TestPractic {
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();
}
}