Cod sursa(job #1904398)
| Utilizator | Data | 5 martie 2017 15:24:22 | |
|---|---|---|---|
| Problema | A+B | Scor | 100 |
| Compilator | java | Status | done |
| Runda | Arhiva de probleme | Marime | 0.52 kb |
import java.io.FileInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException{
FileInputStream fin = new FileInputStream("adunare.in");
Scanner scan = new Scanner(fin);
int a,b;
a=scan.nextInt();
b=scan.nextInt();
scan.close();
Integer c=a+b;
PrintWriter fout = new PrintWriter("adunare.out");
fout.write(c.toString());
fout.write('\n');
fout.close();
}
}
