18 November
You are to write a program that reads in lines of input using scanf or cin, and file redirection, process the data, and then outthe results using printf or cout. This means you can use C or C++ or any other style I/O as is your personal preference. Each line…