Pagini recente » Profil Crila | Cod sursa (job #1478874) | Cod sursa (job #2532334) | Cod sursa (job #2591773) | Cod sursa (job #2452519)
package adunare;
import java.io.*;
import java.util.*;
public class Adunare {
public static void main(String [] args) throws FileNotFoundException
{
File fileIn=new File("adunare.in");
File fileOut=new File("adunare.out");
Scanner scanner=new Scanner(fileIn);
PrintWriter pw=new PrintWriter("adunare.out");
int a, b;
a=scanner.nextInt();
b=scanner.nextInt();
pw.println(a+b);
scanner.close();
pw.close();
}
}