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
1583.36 rounded to the nearest hundredth
Natalka [10]

Answer:

I can't see what the thousandth place is behind the decimal here, but you would look at the number in that spot. If the number is larger than 4, then you round up. If it is 4 or less, then you keep it the same.

Explanation:

3 0
3 years ago
A spaceship traveled 12 trillion miles. in scientific notation that is _____ miles.
trasher [3.6K]
1 million is 1 x 10^6 1 billion is 1 x 10^9 1 trillion is 1 x 10^12 So 12 trillion miles is 12 x 10^12 which converts to 1.2 x 10^1 x 10^12 = 1.2 x 10^13
6 0
3 years ago
Read 2 more answers
Saan nag mumula telang pinya jusi at sinamay
nordsb [41]
What? Is this a serious question?
6 0
3 years ago
8. In Florida the standard defined speed limit in a residential area is ___________ mph.
zmey [24]
<span>Florida "Standard" Speed Limits
<span>Business or Residential Areas 30
</span><span>Rural Interstate Limited 70 
</span><span>Limited Access Highways 70
</span><span>All Other Roads and Highways <span>55<span>*</span></span></span></span>
6 0
3 years ago
Read 2 more answers
Marta took her dog, roxy, to the dog park to play. the park was crowded that day with lots of dogs and owners.
stira [4]

The principle which allowed Marta to find her dog Roxy is known as an: d. absolute threshold.

<h3>What is an absolute threshold?</h3>

An absolute threshold can be defined as the smallest (lowest) level of stimulus such as light, touch, sound, etc., that can be detected by a living organism, usually half the time.

In this scenario, a principle which allowed Marta to find her dog Roxy amid all of the other barking dogs is known as an absolute threshold.

Read more on absolute threshold here: brainly.com/question/15301528

#SPJ1

7 0
2 years ago
Other questions:
  • Who is responsible for conducting fiscal policy
    12·1 answer
  • Question in pictures
    10·1 answer
  • Which of these is one way that the environment can affect your physical health?
    9·1 answer
  • Which ICS functional area monitors costs related to the incident and provides accounting, procurement, time recording, and cost
    15·1 answer
  • Summary of one man and two governers
    14·1 answer
  • How does your answer change if a large Brazilian company buys up all of the groves in central Florida, creating monopsony power
    11·1 answer
  • What has been one of the greatest obstacles to achieving racial integration of public schools in the United States?
    8·1 answer
  • Explain how top-down processing and bottom-up processing are related to sensation and perception.
    9·1 answer
  • How can I catch up in Social Studies, Pre-AP Math, Pre-AP ILA, &amp; Science in a month? Are there any websites for this? Please
    5·1 answer
  • A BANK PAYS 7% SIMPLE INTREST ON A ONE -YEAR CD . THE DEPOSITER HAS SAVED $35.00 PER WEEKFOR 52 WEEKS BEFORE DEPOSITING THE MONE
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!