Cod sursa(job #2452519)
| Utilizator | Data | 31 august 2019 00:58:07 | |
|---|---|---|---|
| Problema | A+B | Scor | 0 |
| Compilator | java | Status | done |
| Runda | Arhiva de probleme | Marime | 0.44 kb |
package adunare;
import java.io.*;
import java.util.*;
public class Adunare {
public static void main(String [] args) throws FileNotFoundException
{
File fileIn=new File("adunare.in");
File fileOut=new File("adunare.out");
Scanner scanner=new Scanner(fileIn);
PrintWriter pw=new PrintWriter("adunare.out");
int a, b;
a=scanner.nextInt();
b=scanner.nextInt();
pw.println(a+b);
scanner.close();
pw.close();
}
}
