CODE
feet = 50
days = 0
up = 2
down = 1
while feet > 0:
feet = feet - up + down
days += 1
print("Days:", days)
FLOW CHART
CODE
result = 0
no = 1
while no <= 5:
result = result + no
no += 1
print(result)
FLOW CHART
CODE
result = 1
no = 5
while no >= 1:
result = result * no
no -= 1
print(result)
FLOW CHART



Top comments (0)