1 Star 0 Fork 1

jack2583/PythonExamples

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Program to print table of given number.py 260 Bytes
一键复制 编辑 原始数据 按行查看 历史
Yash 提交于 2020-10-01 11:54 +08:00 . Example added for more user understanding
n = int(input("Enter the number to print the tables for:"))
for i in range(1, 11):
print(n, "x", i, "=", n * i)
#Example
#input: 2
#output:
"""
2 x 1 = 2
2 x 2 = 4
2 x 3 = 6
2 x 4 = 8
2 x 5 = 10
2 x 6 = 12
2 x 7 = 14
2 x 8 = 16
2 x 9 = 18
2 x 10 = 20
"""
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jack2583/pythonExamples.git
git@gitee.com:jack2583/pythonExamples.git
jack2583
pythonExamples
PythonExamples
master

搜索帮助