soumyanakarmi
soumyanakarmi soumyanakarmi
  • 01-05-2021
  • Computers and Technology
contestada

write a programme to print the following series or pattern 1,22,333,4444,55555​

Respuesta :

paulbabchanik paulbabchanik
  • 01-05-2021
def create_sequence():

n = int(input('Enter the number till which you want the sequence:'))

for i in range(1,n+1):

print(str(i) * i)



create_sequence()




This is python language
Answer Link
kdaayush7
kdaayush7 kdaayush7
  • 25-08-2021

Answer:

hey here is your req answer.

CLS

FOR i = 1 TO 5

FOR j = 1 TO i

PRINT i;

NEXT j

PRINT

NEXT i

END

any problem the comment it and let me know

hope this helped you

Answer Link

Otras preguntas

In an equation what symbol would indicate a mixture a. (g) b. (s) c (aq) d. (l) and explain plz
There are x giraffes at the zoo. The number of elephants is 4 less than three times the number of giraffes, and there are more than 23 elephants.
Plants transform some of the electromagnetic energy from the sun into what?
What is needed for an idea to be scientifically reliable?
Which characteristics do cell membranes and cell walls have in common?
3kg 296 g + 5 kg + 326 g
5.39 repeating decimal as a mixed number
A bookstore had 96 copies of a magazine. Yesterday, it sold 1/3 of them. Today, it sold 1/8 of what remained. How many copies does the bookstore have left?
Express 14 100 000 in scientific notation
Evolution _____. A) happens very quickly B) happens on a genetic level C) happens whenever an organism changes D) is the same as growth and metamorphosis