Python用while打印九九乘法表
时间: 2023-11-19 11:03:20 浏览: 49
python打印九九乘法表
Sure, I can help you with that. Here's the Python code to print the multiplication table using while loop:
```
i = 1
while i <= 9:
j = 1
while j <= i:
print('{}*{}={}'.format(j, i, i*j), end='\t')
j += 1
print()
i += 1
```
This will print the entire multiplication table from 1x1 to 9x9. Let me know if you have any other questions!
阅读全文