suliflin594 suliflin594
  • 10-11-2017
  • Chemistry
contestada

Write nested loops to print a rectangle. sample output for given program:* * * * * *

Respuesta :

Kalahira
Kalahira Kalahira
  • 21-11-2017
Answer: num_rows = 2 num_cols = 3 for i in range(num_rows): for j in range(num_cols): print('*', end=' ') print('')
Answer Link
brandieburton19
brandieburton19 brandieburton19
  • 15-08-2021

Answer:

for i in range(num_rows):

   print('*', end=' ')

   for j in range(num_cols-1):

       i*=j

Explanation:

The above answer didnt work for me, instead I entered the above and it ran correctly. Hope this helps!

Answer Link

Otras preguntas

Last Year, a state university received 3,560 applications from boys. Of those applications, 35 Percent were from boys who lived in other states. Part A)How many
a deep crack formed by diverging tectonic plates
what is the process that results in offspring that are genetically unique called
What is the main reason that energy is harvested in stages in cellular respiration?
What happens when lakes are acidified? A. fish flourish B. water ecosystems go unchanged C. fish die
What is the seniority rule and why do people criticize it?
Solve the equation ; 4x-4=2x+10 Someone help?
if alexander had lived do you think he would have been as successful in ruling his empire as he was in building? explain? (6-8 sentences)
Help on geometry please show work abd answer please
suppose marcus delivers papers at a rate of 9 papers in 18 minutes.How much longer would it take him to deliver 100 papers than 72 papers?Justify your response.