Cod sursa(job #1430332)

Utilizator Popa_Maria_Catalina_321CCPopa Maria Catalina Popa_Maria_Catalina_321CC Data 8 mai 2015 10:58:45
Problema A+B Scor 0
Compilator java Status done
Runda teme_upb Marime 0.8 kb

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
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 catalina
 */
public class main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws FileNotFoundException {
        Scanner r = new Scanner(new FileInputStream("adunare.in"));
        PrintWriter out = new PrintWriter("adunare.out");
        int a, b,sum;
        a =  r.nextInt();
        b = r.nextInt();
        sum = a + b;
        out.write(sum);
        out.write("\n");
        r.close();
        out.close();
    }
    
}