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

2. Between which two numbers will “the square root of 10” lie on the number line? 10 and 10.5 Pi and 4 0 and pi 14/5 and 31/10 Please help and tell me the corre
Select all the correct answers. Steve's doctor has advised him to take protein supplements. He bought two brands, Brand A and Brand B. The table gives the amoun
What kind of engine do most cars use today? a. external combustion engine b. electric engine c. biomass engine d. internal combustion engine
what are the 2 major mountain
A cliche is a expression
ANSWER PLZ QUICK AND FAST WHAT THE ANSWER
Determine which relation is a function.
Answer either one because I don’t kno how to solve them
Which a biotic factors can be shown in this photo
The seventeenth and eighteenth century philosophers john locke, jean jacques rousseau and thomas hobbes supported which theory of government