Pagini recente » Cod sursa (job #1962189) | Cod sursa (job #2643089) | Cod sursa (job #2803261) | Cod sursa (job #1058702) | Cod sursa (job #1431175)
/*
* 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 testpa;
/**
*
* @author vhohlov
*/
import java.io.*;
import java.util.Scanner;
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();
//System.out.println("Citit din fisier " + a);
int sum = a + b;
PrintWriter writer = new PrintWriter("adunare.out");
writer.write(String.valueOf(sum) + "\n");
writer.close();
reader.close();
}
}