Cod sursa(job #1430482)

Utilizator GogoantaAlexandraMihaela_321CCGogoanta Alexandra Mihaela GogoantaAlexandraMihaela_321CC Data 8 mai 2015 15:22:01
Problema A+B Scor 100
Compilator java Status done
Runda Arhiva de probleme Marime 0.8 kb
/*
 * 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();
    }
    
}