📜  python中的程序打印前10个自然数. - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:59.332000             🧑  作者: Mango

代码示例1
# Python Program to Print Natural Numbers from 1 to N
 
number = int(input("Please Enter any Number: "))

print("The First 10 Natural Numbers ".format(number)) 

for i in range(1, number + 1):
    print (i, end = '  ')