Cod sursa(job #1245368)

Utilizator tester_31tester tester_31 Data 19 octombrie 2014 00:07:58
Problema A+B Scor 100
Compilator java Status done
Runda Arhiva de probleme Marime 0.49 kb
import java.util.Scanner;
import java.io.*;

public 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 suma = a + b;
            sc.close();            

            PrintWriter pw = new PrintWriter(new File("adunare.out"));
            pw.print(suma);
            pw.close();
    
    }
    
}