Pagini recente » Cod sursa (job #3295949) | Cod sursa (job #2146231) | Cod sursa (job #581369) | Cod sursa (job #1113950) | Cod sursa (job #1430482)
/*
* 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.*;
import java.util.Scanner;
/**
*
* @author Mihaela
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) throws IOException {
// 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();
}
}