You can use a for-loop to plot a star pattern too, by using the for loop to count angles around a circle.
Now you try. Try fixing the r= statement and the line statement as directed.
Type your code here:
See your results here:
This code will not run. You have to fix the r=, which will be radius of the star (try 100). Then fix the line statement
to draw a line from $(0,0)$ (the center of the screen), to $x$ and $y$ point computed using the two formulas. Can you do it?
Share your code
Show a friend, family member, or teacher what you've done!