Return To CS 110 Home

Colour Theme   Font Size Options
 
   
   
   
Exercise 3

Nested While Loops Exercise

Use ex3_linect.cpp in the replit team project or copy the following code into your IDE:


This program will use a pair of nested while loops to count how many characters appear on each line of a file. The outer loop will count the lines of the file, the inner loop will count the characters on the current line.

Instructions:

When you are done: