Pagini recente » Cod sursa (job #2767438) | Cod sursa (job #1164151) | Cod sursa (job #1128788) | Cod sursa (job #1770829) | Cod sursa (job #2452520)
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();
}
}