Here is the code for a python program to find multiples of 5 in the range defined by the user. Implementing using both while loop and for loop.
#Python program to find multiples of and integer defined by the user in the range which is also defined by the user. Implementing using both while loop and for loop.
#Using while loop
integerInput = int(input('Enter the integer to find its multiples: '))
startingRange = int(input('Enter the starting point: '))
endPoint = int(input('Enter the end point: '))
while startingRange <= endPoint:
print(integerInput * startingRange)
startingRange += 1
#Using for loop
integerInput = int(input('Enter the integer to find its multiples: '))
startingRange = int(input('Enter the starting point: '))
endPoint = int(input('Enter the end point: '))
for i in range(startingRange, endPoint + 1):
print(integerInput * i)
# This code is contributed by Ahmad Shafiq