Python program to Create a Multiplication Table Using While Loop
x = 1
while x < 10:
y = 1
while y < 10:
print("%4d" % (x*y), end="")
y += 1
print()
x += 1
Output:
|
1 2 3 4 5 6 7 8 9 |
Output:
|
1 2 3 4 5 6 7 8 9 |