Cod sursa(job #1431191)
Utilizator | Mihai Ioana Daniela Mihai_Ioana_Daniela_322CC | Data | 9 mai 2015 01:40:16 |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | java | Status | done |
Runda | teme_upb | Marime | 0.4 kb |
import java.io.*;
import java.util.Scanner;
public class Main
{
public static void main(String[] args) throws FileNotFoundException
{
Scanner s = new Scanner(new FileInputStream("adunare.in"));
int a = s.nextInt();
int b = s.nextInt();
PrintWriter pw = new PrintWriter(new FileOutputStream("adunare.out"));
pw.println(String.valueOf(a+b));
pw.close();
s.close();
}
}