num = int(input('Enter a number: ')) num2 = 1 for i in range(num): print(num2, end=' ') num2 = num2 + 1