Write a program Using loops to display the following patterns - (i)********** (ii)******************** (iii)******************************************************* (iv)****************************************************************************************************************************************************************************************************************** (v)******************************************************* (vi)******************************************************************************************************************************************************************************************************************
Added by Shawn V.
Step 1
For pattern (i), we can use a loop to print 10 asterisks: ``` for i in range(10): print("*", end="") ``` For pattern (ii), we can use a loop to print 20 asterisks: ``` for i in range(20): print("*", end="") ``` For pattern (iii), we can use a loop to Show more…
Show all steps
Your feedback will help us improve your experience
Akash M and 93 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Consider the circuit shown below. Write the three loop equations for the loops shown.
PROGRAMMING Given vectors $\mathbf{u}$ and $\mathbf{v}$ in component form, write a program for your graphing utility in which the output is (a) $||\mathbf{u}||$, (b) $||\mathbf{v}||$, and (c) the angle between an $\mathbf{u}$ and $\mathbf{v}$.
Additional Topics in Trigonometry
Vectors and Dot Products
PROGRAMMING Given vectors $\mathbf{u}$ and $\mathbf{v}$ in component form, write a program for your graphing utility in which the output is the component form of the projection of $\mathbf{u}$ onto $\mathbf{v}$.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD