DEV Community

Sivakumar Mathiyalagan
Sivakumar Mathiyalagan

Posted on

Flow Chart

CODE

feet = 50
days = 0
up = 2
down = 1

while feet > 0:
    feet = feet - up + down
    days += 1

print("Days:", days)
Enter fullscreen mode Exit fullscreen mode

FLOW CHART

CODE

result = 0
no = 1

while no <= 5:
    result = result + no
    no += 1

print(result)
Enter fullscreen mode Exit fullscreen mode

FLOW CHART

CODE

result = 1
no = 5

while no >= 1:
    result = result * no
    no -= 1

print(result)
Enter fullscreen mode Exit fullscreen mode

FLOW CHART

Top comments (0)