Pagini recente » Cod sursa (job #2319158) | Cod sursa (job #438489) | Cod sursa (job #2621919) | Cod sursa (job #752131) | Cod sursa (job #1430474)
/*
* 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.
*/
package main;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
/**
*
* @author Mihaela
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws FileNotFoundException {
// TODO code application logic here
Scanner scanner = new Scanner(new FileInputStream("adunare.in"));
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = a + b;
PrintWriter pw = new PrintWriter("adunare.out");
pw.write(String.valueOf(c));
pw.close();
scanner.close();
}
}