Cod sursa(job #1313394)
| Utilizator | Data | 10 ianuarie 2015 16:56:40 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | java | Status | done |
| Runda | Arhiva de probleme | Marime | 0.54 kb |
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Suma {
public static void main(String [] args){
try {
Scanner s = new Scanner(new File("suma.in"));
PrintWriter p = new PrintWriter("suma.out");
int a,b;
a=s.nextInt();
b=s.nextInt();
a=a+b;
p.print(a);
s.close();
p.close();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
