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

If an Arctic polar bear is transferred to a zoo in tropical Singapore, it will not be able to survive. What could be the reason for this? a-tolerance only for c
Is this Linear y=4000-70x if it is how do you know
fill in the table, and then round to the given place. 3.1
Which desert does the Huang river curve around
A dog toy is on sale for 20% off the original price. If the original price of the toy is $11.50 what is the discounted price?
What is the answer to 17=5k-2
Why are we called carbon based life forms?
suppose a varies directly as b, and a=7 when b=2 find b when a =21
what is the 10th term of the sequence:5,9,13,17
The brilliant Carthaginian general _______ led war elephants and soldiers through the Alps to attack Rome from the north.