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
Submitting the profile which includes sending a report to one college cost
Solnce55 [7]

It depends what the college is and where it is you should call the college and ask

5 0
4 years ago
Read 2 more answers
2. True or False? While climate appears to significantly influence the
seropon [69]

Answer:

True

Explanation:

Its and is true. So I hope it will help you

3 0
3 years ago
Read 2 more answers
How they calculate the years?
Maru [420]

Answer: A monk called Dionysius Exiguous calculated his own present year to be A.D. 525. Counting from that year reaches the current year. A.D. is now used to label the number of years in the Gregorian calendar, the most widely used calendar in the world and the unofficial global standard. You add one year every January 1.

Explanation:

5 0
2 years ago
1) In most political campaigns, candidates promise more than they can deliver. In the USA, Democrats and Republicans promise bet
anygoal [31]
Try you best and look it up 
but also yhu could just do what i do and just look at what it saids and reread it 
5 0
3 years ago
join my remind if u have it.. ( i prefer only guys.. but girls can join too) comment and i'll give u a code
kherson [118]

Answer:

thx for free points

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • What led to the creation of the Rhode island colony? how was the colony governed?
    15·2 answers
  • Which air mass would produce cold, dry weather in the winter
    15·2 answers
  • When properly applied to a dog, the loose end of the training collar is
    10·2 answers
  • ASAPP PLEASE!! 40 PTS FOR THIS QUESTION!!
    6·1 answer
  • How does the origin of GOD differ from the origin of other gods?
    6·2 answers
  • What the correct answer to this question now c or d
    12·2 answers
  • Knox131 .. it wouldn’t let me text you back i hope you see this :,(
    10·2 answers
  • Any help on this frq
    11·1 answer
  • Plz someone do this essay and I’ll give u $15 ❤️
    14·2 answers
  • What factors determine how much voltage is induced by a magnet I need four factors
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!