Pagini recente » Cod sursa (job #2913761) | Cod sursa (job #2950948) | Cod sursa (job #414522) | Cod sursa (job #3201681) | Cod sursa (job #1430060)
import java.io.FileNotFoundException;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/*
* 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.
*/
/**
*
* @author aL3XaNdRu10
*/
class Problema {
public static void main(String[] args) throws FileNotFoundException {
Scanner scanner = new Scanner(new FileInputStream("adunare.in"));
int a = scanner.nextInt();
int b = scanner.nextInt();
int suma = a+b;
PrintWriter writer = new PrintWriter("adunare.out");
writer.write(String.valueOf(suma)+"\n");
writer.close();
scanner.close();
}
}