Answer:
The C program is given below. The code follows the instructions of the question. Follow both as you program for better understanding
Explanation:
#include <stdio.h>
int main()
{
int n, min, max, i;
int arr[20];
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&arr[i]);
}
scanf("%d",&min);
scanf("%d",&max);
for(i=0;i<n;i++){
if(arr[i]>=min && arr[i]<=max){
printf("%d ",arr[i]);
}
}
return 0;
}