Cod sursa(job #1430979)

Utilizator Ion_Diana_Gabriela_Stefania_325CCIon Diana Gabriela Stefania Ion_Diana_Gabriela_Stefania_325CC Data 8 mai 2015 22:34:32
Problema A+B Scor 100
Compilator java Status done
Runda teme_upb Marime 0.67 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.
 */

import java.util.*;
import java.io.*;
/**
 *
 * @author Diana Ion
 */
public class Main{
    public static void main(String args[]) throws IOException{
        Scanner sc = new Scanner(new FileInputStream("adunare.in"));
        int a, b;
        a = sc.nextInt();
        b = sc.nextInt();
        int sum = a + b;
        sc.close();
        
        PrintWriter w = new PrintWriter("adunare.out");
        w.print(sum);
        w.println();
        w.close();
    }
    
}