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

Rachel and David share 40 biscuits between them in the ratio 2:3, How many biscuits do they each get?
Add these fractions (Lowest Terms) a) 1/6 + 1/6 b) 1/4 + 3/8 c) 2/3 + 5/6 d) 9/21 + 4/7 e) 1 3/5 + 1/10 f) 1 1/4 + 11/12 g) 1 2/3 + 2/3 h) 1 5/6 + 3 2/5
What is a synonym for sensory language?A.simileB.fluencyC.metaphorD.imagery im thinkin D?
how do u find the area of a triangle
Perimeter of a square with an area of 81cm2
Find the length of the radius of the following circle. (x + 2)2 + y2 = 10
How do I solve for x? X+6x=56
where did japan first expand its empire after 1930
where did japan first expand its empire after 1930
where will you find maximum rate of evaporation - ocean, pond or an aquarium? Give reason to support your answer.