1.
- See diagram for answer A
- See diagram for answer B
- See diagram for answer C
- See diagram for answer D
- See diagram for answer E
Q1: What is the output of the following loop?
i = 0
while i < 3:
print("hi")
i += 1

i = 0
while i < 3:
print("hi")
i += 1
i = 10
while i > 1:
print(i, end=" ")
i-=1
i = 10
while i > 1:
print(i, end=" ")
i+= 1
i = 0
total = 0
while i <= 50:
total += i
i += 5
print(i)
counter
after the execution of the folowing code?counter = 0
while counter > 100:
if counter % 2 == 1:
print(counter + " is odd.")
else:
print(counter + " is even.")
counter += 1
print(counter)