This commit is contained in:
louiscklaw
2025-01-31 21:15:04 +08:00
parent 3337cc3d1e
commit acf9d862ff
324 changed files with 43162 additions and 0 deletions

27
max015/T11/P05 copy.py Normal file
View File

@@ -0,0 +1,27 @@
def myFunction(n):
if j % i == 0: # Check if j is divisible by i
for k in range(j):
s_i_loop += 1
print("*", end="") # Print '*' to the console without newline
print()
# Example usage
print("n=0")
myFunction(0)
print("n=1")
myFunction(1)
print("n=2")
myFunction(2)
print("n=3")
myFunction(3)
print("n=4")
myFunction(4)
print("n=5")
myFunction(5)