Welcome to Westonci.ca, the Q&A platform where your questions are met with detailed answers from experienced experts. Our platform provides a seamless experience for finding reliable answers from a knowledgeable network of professionals. Get quick and reliable solutions to your questions from a community of experienced experts on our platform.

Assume that a file named values.txt exists and that it contains a series of numbers, one per line in the file. Also assume that a program can successfully execute the following statements to open the file:

ifstream inputFile;
inputFile.open("values.txt");

Write a loop that reads each number from the file and displays each number on the screen.