Write a program that reads an input text file containing int…
Write a program that reads an input text file containing integer numbers, calculates their sum, and performs the following: If the sum is less than 50, display all odd numbers between 0 and the sum. Sample Input: input.txt: 4 5 6 1 2 Sample Output: Sum = 18 Odd numbers between 0 and 18 are: 1 3 5 7 9 11 13 15 17 Your program should compile and run. Add enough comments and make sure your program is correctly indented.