1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ad-work [718]
3 years ago
13

Write code which prints every number from 1 to 20 a number of times equal to the number itself (e.G. One 1, two 2's...). Every i

ndividual number printed should be separated by a space, and there should be a new line each time the number changes. You should use nested loops to produce your output (it will result in far less code).
Advanced Placement (AP)
1 answer:
madreJ [45]3 years ago
8 0

Answer:

Answered in Python

for i in range(21):

    for j in range(i):

         print(i, end=' ')

    print(" ")

Explanation:

This iteration iterates from 1 to 20

for i in range(21):

This iteration iterates from 1 to current number

   for j in range(i):

This prints the current number in the a number of times equal to itself

       print(i, end=' ')

This enables printing on new line

   print(" ")

You might be interested in
What are the three factors that would need to be present in an ecosystem before reintroducing an old species back into that area
jeka57 [31]

Answer:

well the Ecosystems contain biotic or living, parts, as well as abiotic factors, or nonliving parts. Biotic factors include plants, animals, and other organisms. Abiotic factors include rocks, temperature, and humidity.

Explanation: i tired my best i hope this answer your question. if this is wrong i am very sorry

8 0
3 years ago
Which of the Following equations has a solution if -50
8090 [49]

Answer:add the choices in

Explanation:

6 0
3 years ago
Which of the following BEST describes the reason people create maps? (2 points)
frosja888 [35]

Answer:

to store information about the world and convey that information to others

Explanation:

google

6 0
3 years ago
Read 2 more answers
In "Daniel in the Lion's Den" what law do the princes trick the king into signing?
goldfiish [28.3K]

Answer:

A law that forbids people from asking anything of anyone other than the King.

+if this helped you, please consider marking it the Brainliest.

7 0
3 years ago
What are examples of responses in plants and animals that result from internal stimuli and that help maintain homeostasis
valina [46]
Three examples of responses in plants and animals that result from internal stimuli and help maintain homeostasis are blood level, temperature, and nutrition levels. 
Hope this helps!
8 0
3 years ago
Other questions:
  • What was the main aim of the northwest ordinance of 1787
    9·2 answers
  • How to creat a map on country
    7·1 answer
  • _____ signs tell you how to drive safely in work zones.
    11·1 answer
  • Guys i need a paragraph explaining the middle age. It can be about 7 sentences it doesn't have to be loooooong! Please guys I ne
    6·1 answer
  • What are Banquos dying words. Macbeth Act Three Scene Three
    11·1 answer
  • What did the French system of royal power come to be called? Why?
    10·1 answer
  • What is one reason that John Adams and Benjamin Franklin believed the Articles of Confederation should be revised?
    6·2 answers
  • Is anyone here from Kenya?​
    5·2 answers
  • Ella looked out her window and saw two birds. She immediately recognized one as a blue jay and the other as a robin. What is her
    12·1 answer
  • What are the advantages/disadvantages of the majority-minority districts? How does this decision apply to US politics?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!