Answer:
file = open("numbers.txt")
numbers = []
for line in file:
numbers.append(int(line))
print("The numbers in the file: " + str(numbers[0]) + " " + str(numbers[1]))
print("The sum of the numbers: " + str(numbers[0] + numbers[1]))
Step-by-step explanation:
The code is in Python.
Open the file named numbers.txt
Create an empty list, numbers, to hold the numbers in the file
Create a for loop that iterates through file and adds the number inside the file to the list
Print numbers
Calculate and print the sum of the numbers