Modify Loop Exercises#

Exercise 1#

Write a function that prints from 1 to n using a for loop, it should skip every multiple of 5.

Exercise 2#

Write a function that prints from 1 to n squared using a while loop. It should stop the while loop if the iteration count is 50.

Exercise 3#

Write a function that reads numbers from a file and prints their average. Skip empty lines. Use modify_loop_ex3_data.txt