Pagini recente » Cod sursa (job #982739) | Cod sursa (job #536988) | Cod sursa (job #2158522) | Cod sursa (job #1766956) | Cod sursa (job #1430338)
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(String.valueOf(sum));
out.write("\n");
r.close();
out.close();
}
}