Cod sursa(job #1430982)

Utilizator Ion_Diana_Gabriela_Stefania_325CCIon Diana Gabriela Stefania Ion_Diana_Gabriela_Stefania_325CC Data 8 mai 2015 22:37:56
Problema A+B Scor 100
Compilator java Status done
Runda teme_upb Marime 0.77 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
 */
class help {
    public static int sum(int a, int b){
        return a+b;
    }
    
}
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 = help.sum(a, b);
        sc.close();
        
        PrintWriter w = new PrintWriter("adunare.out");
        w.print(sum);
        w.println();
        w.close();
    }
    
}