Cod sursa(job #1420917)
| Utilizator | Data | 19 aprilie 2015 09:53:38 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | java | Status | done |
| Runda | Arhiva de probleme | Marime | 0.48 kb |
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
/**
* @param args
* @throws FileNotFoundException
*/
public static void main(String[] args) throws FileNotFoundException {
int a, b;
Scanner sc = new Scanner(new File("adunare.in"));
PrintWriter pr = new PrintWriter(new File("adunare.out"));
a = sc.nextInt();
b = sc.nextInt();
pr.print(a + b);
sc.close();
pr.close();
}
}
