Pagini recente » Cod sursa (job #1354120) | Cod sursa (job #528601) | Cod sursa (job #846105) | Cod sursa (job #997306) | Cod sursa (job #1430982)
/*
* 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();
}
}