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, 22.06.2019 09:40, vanessacasillas452
In the lab, which of the following displayed a list of all installed services and included a description of the service, the current state, and whether the service started automatically or manually? a. the services manager b. the applications summary c. the recommended services d. list the safe services list
Answers: 2
image
Computers and Technology, 22.06.2019 20:10, ianmartin6080
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
image
Computers and Technology, 23.06.2019 17:00, osirisarellane3792
*! 20 points! *jeff wants to create a website with interactive and dynamic content. which programming language will he use? a. dhtml b. html c. css d. javascript
Answers: 1
image
Computers and Technology, 23.06.2019 18:50, ana7496
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
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, 30.03.2021 22:30
Konu
Chemistry, 30.03.2021 22:30