Commit 27a244f1 by BellCodeEditor

save project

parent 236debbc
Showing with 8 additions and 3 deletions
...@@ -2,8 +2,12 @@ import turtle as tu ...@@ -2,8 +2,12 @@ import turtle as tu
p = tu.Pen() p = tu.Pen()
p.fillcolor("red") p.fillcolor("red")
p.begin_fill() p.begin_fill()
for i in range(5): e = int(input(" shuru "))
p.forward(200) f = int(180-(360/e))
p.right(144) g = int(360/f)
for i in range(g):
p.forward(100)
p.right(f)
p.end_fill() p.end_fill()
p.hideturtle()
tu.done() tu.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment