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

Simone calculates the volume of a cube with side length 2.3 cm to be 6.9 cm3. Meiki says the volume is 12.167 cm3. Who is correct, and why?
[tex]2(4k+15)-12(k+1)\\[/tex]
Use the graph to determine the solution of the inequality |x+1| + 2 > 5. O (-∞,-4) (2,00) (-4, 2) O (0,3) O (-∞,0) (3,0) DONE✔
What two battles outside of Philadelphia did George Washington and continental army lose
A line with slope 12 passes through the point (−6, 14)
explain why it is important for you to understand and explain the basic internal and external parts of a computer in the work place setting
Can someone help me
Please help me with this!!!!
The following short story, “Elsewhere,” written by Stephanie McClure, was published in 2015. In this story a little girl, Zita, slips out of her house at dawn.
What does 'volatile' mean for a computer's memory?