Cod sursa(job #1431192)

Utilizator Victor_Hohlov_322CCVictor Hohlov Victor_Hohlov_322CC Data 9 mai 2015 01:40:22
Problema A+B Scor 100
Compilator java Status done
Runda Lista lui wefgef Marime 0.63 kb
/*
 * 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 vhohlov
 */
import java.io.*;
import java.util.Scanner;
 
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();
}
 
}