'''Q1 write a program to display the text Hello 5 times using for loop.
'''
print('Displaying the text hello 5 times')
for a in range(1,6,1):
print('Hello')
'''Q2 write a program to display the first 10 natural numbers using for loop.
'''
print('The first 10 natural numbers are-')
for a in range(1,11,1):
print(a)
'''Q3 write a program to display odd numbers between 1 to 10 using for loop.
'''
print('Odd nos between 1 and 10 are')
for a in range(1,10,2):
print(a)
'''Q4 write a program to display even numbers between 1 to 10 using for loop.
'''
print('Even nos between 1 and 10 are')
for a in range(2,11,2):
print(a)
'''Q5 write a program to display odd numbers from 10 to 1 using for loop.
'''
print('Odd nos from 10 to 1 are')
for a in range(9,0,-2):
print(a)
'''Q6 write a program to display even numbers from 20 to 10 using for loop.
'''
print('Even nos from 20 to 10 are')
for a in range(20,9,-2):
print(a)
'''Q7 write a program to input 2 numbers and display all numbers between them
using for loop.
'''
a=int(input('First number?'))
b=int(input('Second number?'))
print('Numbers between' , a, 'and' ,b, 'are:')
for x in range(a,b+1,1):
print(x)
'''Q8 write a program to input your name and the number of times you want to
print
using for loop'''
name=input('Name?')
no=int(input('How many times you want to print your name?'))
for x in range(1,no+1,1):
print(name)