Pagini recente » Cod sursa (job #1064854) | Cod sursa (job #1428188) | Cod sursa (job #2775117) | Cod sursa (job #2863162) | 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();
}
}