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
A middle-class family with two children in Canada is MOST LIKELY to settle
Olin [163]

Answer:

Explanation:

Canada middle-class families with children are similar to those in the US that they avoid large urban area, rural area or brownfield site. They live as ex-pats only if they have to live overseas.

So the right answer is a middle-class family with two children in Canada is MOST LIKELY to settle <u>in a suburban area.</u>

7 0
1 year ago
Explain ONE specific way in which imperialism affected the development of the domestic economies of imperial states.
Makovka662 [10]

Answer:

One specific way in imperialism affected the development of the domestic economies of imperial states is explained below in detail.

Explanation:

Imperialism negatively attacked the colonies. Under the external rule, indigenous culture and commerce were slaughtered. Shipped goods washed out local craft businesses. By using colonies as reservoirs of raw materials and warehouses for mass-produced goods, colonial authorities held back the colonies from expanding industries.

8 0
2 years ago
A sound wave with a wavelength of 2.5 m travels 660 m in 2 s. Calculate the frequency of the wave. (To calculate the speed of so
WARRIOR [948]

Answer:

f = 132\,hz

Explanation:

The speed of the sound wave is:

v = \frac{660\,m }{2\,s}

v = 330\,\frac{m}{s}

The frequency is:

f = \frac{v}{\lambda}

f = \frac{330\,\frac{m}{s} }{2.5\,m}

f = 132\,hz

7 0
3 years ago
Reeve is a Landscape Architect. Which series of tasks would he be responsible for?
nikklg [1K]
Maintaining the Landscape<span />
8 0
3 years ago
Read the following scenario: A perpetual debate revolves around the roles and activities of business owners in contributing to t
sleet_krkn [62]
There are many benefits to using folders when working with lots of files.  Here are a few examples:

- You can use folders to sort your files by type, almost like drawers in a desk, so you might have folders for Music, Photographs, Documents, etc.

- You can use folders to group files together into a specific group.  For example in your Photographs folder you might have a folder titled BirthdayPhotographs for all the photographs from your birthday.

- As in the example above you can nest folders to create sub-categories.  Documents might include folders for Homework, Stories, Poems

- Folders can have different permissions applied to them, allowing you to keep personal files in a private folder only you can access, or secret files in a folder that doesn't show up in the normal list of folders!
6 0
3 years ago
Other questions:
  • ____ tone often shows the lack of action of energy. a.aggressive b.nonassertive c.assertive
    12·1 answer
  • What level of awareness would be engaged for the average person driving his or her car?
    11·1 answer
  • Come up with a situation where it would be inappropriate to use an MRI scan as a diagnostic tool
    11·1 answer
  • If your credit reports show different scores, what should you do? Nothing, the credit bureaus will recognize the mistake and fix
    13·1 answer
  • John wrote so people would believe that Jesus is the Christ.
    15·2 answers
  • in the three decades after the berlin conference on africa (1884-1885), European powers occupied and colonized Africa, a process
    14·1 answer
  • What is the best way to study for a test
    13·2 answers
  • So they offer other such as generous unpaid leave days and high status job titles
    11·1 answer
  • It is not good for farmers to kill snakes. give reason​
    10·1 answer
  • WHOEVER ANSWERS FIRST WILL BE MARKED BRAINLIEST
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!