Cod sursa(job #2186980)

Utilizator vianulegendsTudor Vianu vianulegends Data 26 martie 2018 09:26:17
Problema A+B Scor 100
Compilator java Status done
Runda Arhiva de probleme Marime 0.43 kb
import java.io.*;
import java.lang.*;
import java.util.*;
 
public class Main {
    public static void main(String[] args) throws IOException {
        Scanner fi = new Scanner(new FileInputStream("adunare.in"));
        PrintWriter fo = new PrintWriter("adunare.out");
        int a, b;
 
        a = fi.nextInt();
        b = fi.nextInt();
 
        fo.printf("%d\n", a + b);
 
        fi.close();
        fo.close();
    }
}