Question: In C Write a program that will read standard input and echo each line to s output with a line number and a tab preceding
Write a program that will read standard input and echo each line to s output with a line number and a tab preceding it. When you run this p and enter lines from the terminal, lines of input will be interspersed with of output. If your system has output redirection and you redirect out to a run the file will look like the input with the lines numbered. An example of a with terminal input and output is below. The user's input is in boldface. Enter your text: This is line 1 This is line 1 This is line 2 This is line 2 This is the last line of input 3 This is the last line of input
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
