write an algorithm to print first n natural numbers which contain a loop
Answers
Answered by
0
Answer:
for python
Explanation:
n=int(input())
for i in range(1,n+1):
print(i,end=" ")
#if you want each number in new line then remove "end=" " "part
Similar questions