Pagini recente » Cod sursa (job #2484977) | Cod sursa (job #2212076) | Cod sursa (job #3312619) | Cod sursa (job #2984979) | Cod sursa (job #1430146)
package tes;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;
public class Adunare {
public static void main(String[] args) throws IOException {
Scanner s = new Scanner(new File("adunare.in"));
File file = new File("adunare.out");
int N = s.nextInt();
int M = s.nextInt();
BufferedWriter output = new BufferedWriter(new FileWriter(file));
int sum = M + N;
output.write(Integer.toString(sum));
output.close();
}
}