i = int(input("Enter a Number")) #by default all inputs are strings 
#while Loop iteration
j=0
print("output by while loop")
while j < i:
  print(j)
  j =j + 1
#for Loop iteration
print("output by for loop")
for j in range(i):
  print(j)

