Lesson 5 Activity: Challenge Problems

Welcome to the challenge problems! Here, we'll test your knowledge of loops from Lesson 5...

Here we'll include three problems that you can answer:


Problem 1: Write a for loop that counts from 1 to 100. It should print out ONLY the even numbers from 1 to 100.



Problem 2: Change the for loop in problem 1 to not include any if statements.



Problem 3: Change the loop in problem 2 to become a while loop.