Pagini recente » Cod sursa (job #3031140) | Cod sursa (job #569348) | Cod sursa (job #1513716) | Cod sursa (job #2539546) | Cod sursa (job #3184828)
# Open the input file containing two numbers, each on its own line.
with open("adunare.in", "r") as fin:
# Store the first two values.
a = int(f.readline())
b = int(f.readline())
# Open the output file for writing.
with open("adunare.out", "w") as fout:
# Write to the output file the string representation of the sum of the two values.
fout.write(str(a+b))