Pagini recente » Cod sursa (job #1016995) | Cod sursa (job #1583727) | Cod sursa (job #2354563) | Cod sursa (job #2782932) | Cod sursa (job #1430333)
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
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 catalina
*/
public class AB {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws FileNotFoundException {
Scanner r = new Scanner(new FileInputStream("adunare.in"));
PrintWriter out = new PrintWriter("adunare.out");
int a, b,sum;
a = r.nextInt();
b = r.nextInt();
sum = a + b;
out.write(sum);
out.write("\n");
r.close();
out.close();
}
}