Cod sursa(job #2182953)
Utilizator | Males Sebastian Senibelan | Data | 22 martie 2018 18:39:14 |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | java | Status | done |
Runda | Arhiva de probleme | Marime | 0.46 kb |
import java.io.*;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException{
File in = new File("adunare.in");
FileWriter out = new FileWriter("adunare.out");
Scanner reader = new Scanner(in);
int a = Integer.parseInt(reader.nextLine());
int b = Integer.parseInt(reader.nextLine());
int c = a + b;
out.write(Integer.toString(a + b));
out.close();
}
}