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

round to the nearest hundredth 5.6192
explain in steps how to graph this linear inequality 2x+3y > -2
if Xx8=y is the rule,and the value of x is 4, what is the value of y
I figured out the 1st question but I do not understand the second one...please show me step by step! Thank you!
What's the other term for: explosive or changing very quickly
Jim has gotten scores of 99 and 93 on his first two tests. what score must he get on his third test to keep an average of 90 or greater
what is glossities and deficiency
A sound wave of 70 cm travels 840 m in 2.5 sec. What is the velocity and frequency of sound?
Which expression is equivalent to 27/125
How many moles of water (H2O) would be produced if 10 moles of O2 gas reacted completely with excess H2 gas?2 H2(g) + O2(g) → 2 H2O(g)A. 5 B. 10 C. 20 D. 30