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 causes the phases of the moon?
Novay_Z [31]

Answer:

Answer is option number 1.

4 0
3 years ago
Read 2 more answers
Match each part of the brain's anatomy with its proper function
alexandr402 [8]

Answer:

Here is the order below:

Explanation:

1. Amygdala: B

2. Cerebellum: D

3. Cerebral cortex: K

4. Corpus callosum: H

5. Hippocampus: C

6. Hypothalamus: F

7. Limbic system: A

8. Medulla: E

9. Pituitary gland: I

10. Reticular formation: J

11. Thalamus: G

(This is my personal research from my notes from when I took Psychology. I believe these are correct. Let me know if something is off. Have a good day!)

7 0
3 years ago
In accordance with the uniform regulations found in CCR-145-2, in which of the following scenarios is the wearing of the militar
n200080 [17]

Answer:

The scenarios in which it is not permissible to wear options are;

Cadet Hastings is attending a ceremony honoring veterans at a political rally

Cadet Vonning volunteered to "get out the vote" at his high school by passing out information about polling places and times

Explanation:

Junior Reserve Officers' Training Corps (JROTC) Cadets are barred from putting on Army uniform in the following scenarios

(1) To promote commercial or political activities or interests

(2) When taking part in public demonstrations, public rallies, public marches, picket lines, broadcasted or while being interviewed in public, without authorization

(3) When in attendance of an event or meeting sponsored by or related to an extremist organization.

8 0
4 years ago
Which earlier civilization most influenced the Roman Empire ?
hodyreva [135]
B is the right answer I just did it
4 0
3 years ago
Read 2 more answers
. Identify two types of human environmental impact that may be created locally, but that have global consequences. Briefly expla
GREYUIT [131]

Answer:

A university course required small groups of students to work together on a group project for one of

their course assignments. The group leaders assigned different tasks to members of the group, such as

different members doing research

Explanation:

5 0
3 years ago
Other questions:
  • You will be asked to provide all of the following personal information as part of your college application except:
    12·2 answers
  • Which of the following masses has only geometric boundaries? *
    11·1 answer
  • Jessica decides not to skip school because she does not want to lose her senior privileges if caught. Jessica is at what level o
    15·1 answer
  • This is my research essay, I need a opinion on it.
    10·1 answer
  • Answer correclty and explain
    14·1 answer
  • write a paragraph explaining how scientists learned the age of the ocean floor and how the data supported seafloor spreading
    11·1 answer
  • What does CRAVEN stand for?
    15·1 answer
  • Hunting and gathering societies
    15·1 answer
  • Please Help me out I am in a time crunch! For cooking class!!
    9·2 answers
  • 28 cm<br> 16 cm<br> 8 cm<br> 1<br> 1<br> 12 cm<br> 14 cm
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!