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

What is the full name of the statue of liberty
X^2+36y^2. What is answer
what term do historians use when they discuss the relationship between two events in which one is the direct result of another A. Historical context B. Point
ahh please help meeee
Which is the end point of a ray
Fill in the blank with the appropriate indirect object pronouns
The average human heart Beats 1.15 times 10 to the power of 5 per day. There are 3.65 times 10 to the power of 2 days in one year. How many times does your hear
-3 - square root of-12 divided by 24​
How many moles are in 42.1 grams of NaCl?​
What is a reproductive strategy? A. The number of alleles an organism passes on B. The DNA that is passed onto an offspring C. The adaptations that an off