Question: Keep track of each variable and the value that variables hold when adjusted. For each iteration of the loop, record the variable data and what

Keep track of each variable and the value that variables hold when adjusted. For each iteration of the loop, record the variable data and what is being printed out.
Details
print("Hello world")
a =60
b =7
c =1
while (a > c and b >=1):
print("looping!")
d = round(a/b +(a/2)+ b) #The round() function rounds values of .5 towards an even integer
b = b -1
c = d/2
if(c%2)==0:
print(c ," is an even number")
else:
print(c ," is an odd number")
print("Done!")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!