Pagini recente » Cod sursa (job #586571) | Cod sursa (job #1362452) | Cod sursa (job #2550805) | Cod sursa (job #1880350) | Cod sursa (job #1479744)
//package com.hadesgames;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.PrintWriter;
public class Main {
static int a, b;
static void readInput() throws Exception
{
String inputFile = "adunare.in";
BufferedReader br = new BufferedReader(new FileReader(inputFile));
a = Integer.parseInt(br.readLine());
b = Integer.parseInt(br.readLine());
br.close();
}
static void writeOutput() throws Exception
{
String outputFile = "adunare.out";
PrintWriter writer = new PrintWriter(outputFile);
writer.print(a+b);
writer.println();
writer.close();
}
public static void main(String[] args) throws Exception {
readInput();
writeOutput();
}
}