+ 1
can someone take a look and help me with my code please
Write a program that uses two separate nested loops to draw this pattern. My code: https://code.sololearn.com/cStaNhBmmNvX/#py i = 0 u = 0 print("first nested loop") while i < 7: print("*", end='') j = 0 while j < i: print("*", end='') j += 1 print("*", end='') print() i = i + 1 print("second nested loop") while u > 7: print("*", end='') y = 0 while y < i: print("*", end='') y += 1 print("*", end='') print() u = u + 1
2 Respostas
+ 1
i = 1
print("first nested loop")
while i < 8:
j = 0
while j < i:
print("*", end='')
j += 1
print()
i += 1
print("second nested loop")
while i > 1:
y = 1
while y < i:
print("*", end='')
y += 1
print()
i -= 1
+ 1
ChaoticDawg , Thank you!!