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

i honestly suck at probability. why are they so HARD???​
Question 1 (Fill-In-The-Blank Worth 1 points) Fill in the blanks with the missing words from the script. Julio: A mi ___________ , Carmen. Carmen Duarte Guzmán
what should you do when someone takes things and hoards them?
help thanks 7.04 love u guys​
Is this correct? I’m very confused on if my answer is right. Thanks!
please help asap my work is already overdo!!! the words are unscrambled already ​
2. How does temperature affect water availability in an ecosystem?
i’m not sure how to figure out what numbers to fill in and the equation
Please Answer This thank you!
What was the Bessemer converter used for and how did it revolutionize industry and production?