Pagini recente » Cod sursa (job #536525) | Cod sursa (job #2164375) | Cod sursa (job #1067404) | Cod sursa (job #1758072) | Cod sursa (job #1430859)
/*
* 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 ptest;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
/**
*
* @author b9672
*/
public class Ptest {
/**
* @param args the command line arguments
*/
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();
}
}