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

according to the declaration of independence,when do people have the right to overthrow their government ​
How many three-eighths are in three and three-fourths
CAN YOU ANSWER WHY THIS IS AN OPPOSITE DIRECTION PLEASE?
pleasee help 26 points
Read the quote below and choose what type of figurative language is being used: "He might well skulk behind the settle, on beholding such a bright, graceful dam
true or false: The nucleus of an atom contains protons and neutrons.
In paragraph 6, the word remorsefully means —
How many times greater in magnitude is an earthquake that measures 7.0 on the Richter scale as opposed to one that measures 3.0?
Which organelle makes energy for the animal cell? A. mitochondria B. chloroplasts C. chromatin D. golgi apparatus
Helppp needed ( answer quickly)