Styrow.dev
Question 92 of 99

write a program for the below pattern with only one while loop * ** *** **** ***** **** *** ** *

Question

write a program for the below pattern with only one while loop * **






** *

Answer

a = 0 bool = True While(a<=5): if(a<0): break; if(a==5): bool = False if(bool): a = a + 1 else: a = a - 1 print(""*""*a)