Cod sursa(job #2122534)
Utilizator | Data | 5 februarie 2018 11:03:10 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | java | Status | done |
Runda | Arhiva de probleme | Marime | 0.48 kb |
import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException{
Scanner sc = new Scanner(new FileInputStream("adunare.in"));
int a = sc.nextInt();
int b = sc.nextInt();
int sum = a + b;
sc.close();
PrintWriter pw = new PrintWriter("adunare.out");
pw.write(String.format("%d", sum));
pw.close();
}
}