Cod sursa(job #1247494)
| Utilizator | Data | 22 octombrie 2014 21:27:01 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | java | Status | done |
| Runda | Arhiva de probleme | Marime | 0.46 kb |
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws FileNotFoundException{
Scanner sc = new Scanner(new File("adunare.in"));
PrintWriter pw = new PrintWriter(new File("adunare.out"));
int a , b , s;
a = sc.nextInt();
b = sc.nextInt();
s = a + b;
pw.println(s);
pw.close();
sc.close();
}
}
