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

The empirical evidence is everywhere, numbers even an English teacher can't ignore. ... Across the country no fewer than 3.2 million seniors are graduating abou
Help!!! 4. Three neighbors make a fruit salad for a summer picnic. One person uses three pounds of strawberries, five pounds of grapes, and one pound of melon a
ladder 5m tall when set against a wall of house just reach the window at a height 3m how far is the lower end of ladder from the base of the wall​
What is the slope of the line that passes through the points (8, 4) and (9,14)?
5 - 2 (3x - 4) = 3 ( x - 4) + 6 explain yourself answer
Please help me with this question. it is due tomorrow please help
Find the value of x and y Plz help
Please help, thanks!
Choose the number (X) that should come next in this series (1 4 9 16 X).
-144x=8x solve for the value of x