Revise the program that you wrote for Checkpoint 6.14 to use the for loop instead of the

Question:

Revise the program that you wrote for Checkpoint 6.14 to use the for loop instead of the while loop.


Checkpoint 6.14

Assume the file data.txt exists and contains several lines of text. Write a short program using the while loop that displays each line in the file.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: