87.8k views
5 votes
Write a programme to print the following series or pattern 1,22,333,4444,55555​

User Domagojk
by
4.4k points

2 Answers

1 vote

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

User Geshode
by
4.3k points
5 votes
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
User Ryan Ogle
by
4.2k points