Pagini recente » Borderou de evaluare (job #3250882) | Borderou de evaluare (job #70647) | Cod sursa (job #3184832) | Cod sursa (job #3184853) | 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))