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

Point h is between g and i. If gh = 2x2 + 7x, hi = 9x – 2, and gi = 38, find the length of gh, hi and the possible values of x.
Which item is made from an alloy? A. steel tray B. glass plate C. credit card D. copper wire
The theoretical yield of Cl2 from certain starting amounts of MnO2 and HCl was calculated as 60.25 g and 65.02 g, respectively. If the percentage yield of Cl2 i
1. A. the Mississippians B. the Ancestral Puebloans C. the Cherokees D. the Hoyanehs
Which body cavity affords the least protection to its internal structures?
The force of attraction between a divalent cation and a divalent anion is 1.91 x 10-8 n. If the ionic radius of the cation is 0.074 nm, what is the anion radius
anyone tryana help me (:
HELP PLZ!!! It’s on a timer!!!! Will give Brainlyist!!!
Perdict the next three numbers in the pattern 2, -6, 18, -54
the method to solving it