Goal: Understand loop termination with conditions.
Instructions:
Initialize a variable count = 1.
Write a while loop to print numbers from 1 to 10.
Use count =count + 1 to increment the count.
Python Code:
# Step 1: Initialize count
count = 1
# Step 2: While loop to print numbers from 1 to 10
while count <= 10:
print(count)
count =count + 1 # Step 3: Increment count