Computers and Technology
Computers and Technology, 18.03.2021 01:50, ugum

Write a program which takes an integer input, n, from the user and prints a rectangle with a height of n by printing asterisks inside a for loop. You can set the other side of the rectangle 10 for simplicity. So, your program should print 10 asterisks at the top, 10 asterisks at the bottom, two asterisks each side for other cases so that inside the rectangle can be empty. You can achieve this by using if statements inside a for loop. Here are some three sample runs with n values, 5, 6, and 8.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 17:00, evanwall91
What does the faves button do? a. users mark a web page as a favorite b. leads other readers to favor a specific page c. readers sort and align their favicons, or favorite icons d. leads users to a message board where they can post questions
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, carcon2019
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
image
Computers and Technology, 24.06.2019 11:30, nate1808
What does the https: // mean when you type in a website
Answers: 1
image
Computers and Technology, 24.06.2019 16:00, dareaalcaam111
What is a dashed line showing where a worksheet will be divided between pages when it prints? a freeze pane a split box a page break a print title
Answers: 1
Do you know the correct answer?
Write a program which takes an integer input, n, from the user and prints a rectangle with a height...

Questions in other subjects:

Konu
Mathematics, 11.07.2019 12:30