Cod sursa(job #1431298)

Utilizator Stoica_Andrei_324CCStoica Andrei Stoica_Andrei_324CC Data 9 mai 2015 10:12:02
Problema A+B Scor 100
Compilator java Status done
Runda Arhiva de probleme Marime 0.7 kb

import java.io.*;
import java.util.Scanner;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Andrei
 */
public class Main {
    
    public static void main(String[] args)throws IOException
    {
        Scanner reader = new Scanner(new FileInputStream("adunare.in"));
        int a = reader.nextInt();
        int b = reader.nextInt();
        int sum = a + b;
 
       PrintWriter writer = new PrintWriter("adunare.out");
       writer.write(String.valueOf(sum) + "\n");
       writer.close();
       reader.close();
    }
    
}