Below is a simple Python program that accomplishes the described task.
def filter_integers_in_range():
# Get the number of integers
num_integers = int(input("Enter the number of integers: "))
# Get the list of integers
integer_list = []
for _ in range(num_integers):
integer = int(input("Enter an integer: "))
integer_list.append(integer)
# Get the lower and upper bounds of the range
lower_bound = int(input("Enter the lower bound of the range: "))
upper_bound = int(input("Enter the upper bound of the range: "))
# Output integers within the specified range
result = [str(num) for num in integer_list if lower_bound <= num <= upper_bound]
print("Integers within the range:", " ".join(result))
# Run the program
filter_integers_in_range()