Programing 'n' natural number using while loop
Output
Enter your limit 5
Natural numbers are 1 2 3 4 5
Answers
Answered by
1
Answer:
n = input("Enter your limit ")
p = "Natural numbers are "
while n >= 0:
p = p+f" {n}"
print(p)
Similar questions