Answer :
Answer:
Replace
while ( /* Your solution goes here */ );
with
while (printVal <=countLimit );
Explanation:
while (printVal <=countLimit );
This checks if the printVal is less than or equal to countLimit.
While this statement is true, the program will continue printing the required output
See attachment for complete program