Python spagetti code problem

เสร็จสมบูรณ์ โพสต์แล้ว Oct 18, 2015 ชำระเงินเมื่อจัดส่ง
เสร็จสมบูรณ์ ชำระเงินเมื่อจัดส่ง

Display "hi"

Ask the user for a number

Goto step 7

Display n

Add 1 to n

If n is less than the number from the user, goto step 4

Goto step 9

Set n to 0

Goto step 4

Display "done"

Write a Python program which does the same thing this design does, without any jumping around do not use a goto!

Hint: there is a BUG in the design. Fix the bug.

Some steps in the design should be combined into one statement. Some steps may not be needed.

the desired output is:

hi

What's your number? 5

0

1

2

3

4

done

use if needed

[url removed, login to view]

need done today soon as possible, very simple program please place reasonable bid

Python

หมายเลขโปรเจค: #8713194

เกี่ยวกับโปรเจกต์

2 ข้อเสนอ โปรเจกต์ระยะไกล ใช้งาน %project.latestActivity_relativeTime|แทนที่%

มอบให้กับ:

it2051229

Hi I have read the read the requirement and I would like to do this project let me know if you are interested so I can start. thanks.

$20 USD ใน 0 วัน
(14 รีวิว)
3.8

freelancer 2 คน กำลังเสนอราคาในงานนี้ โดยมีราคาเฉลี่ยอยู่ที่ $23

rafa0

A proposal has not yet been provided

$35 USD ใน 1 วัน
(2 รีวิว)
1.9
hectorroussille

Hello I am very familiar with python and can do this for tonight. I look forward to work wih you.

$25 USD ใน 1 วัน
(0 รีวิว)
0.0