Write a program that reads in a number n and prints out n rows each containing n star characters, '*'. Thus if n is 3, then your program should print
***
***
***
Answers
Answered by
4
hope It helps!
#sumedhian ❤❤
Attachments:
Answered by
0
Below are the code for the above quention in python language:
Explanation:
Size_of_The_series=int(input("Enter the size of the series to print the *: "))# It is used to take the inputs from the user.
for x in range(Size_of_The_series): #It is the first loop which prints the size of the stars.
for y in range(Size_of_The_series):#It is the second loop which prints the length of the star.
print("*",end="") #It print the star.
print(" ")#It change the lines.
Output:
- If the user gives 5, then it will print the 5 stars up to 5 lines.
- If the user gives 7, then it will print the 7 stars up to 7 lines.
Learn More:
- Python program : https://brainly.in/question/5558161
Similar questions
Math,
5 months ago
English,
5 months ago
Social Sciences,
11 months ago
Math,
11 months ago
Science,
1 year ago